16 lines
369 B
Plaintext
16 lines
369 B
Plaintext
@page
|
|
@using Microsoft.AspNetCore.Http
|
|
@using Microsoft.AspNetCore.Http.Extensions
|
|
@model CardModel
|
|
|
|
@{
|
|
ViewData["Title"] = "Card";
|
|
Response.Redirect("/Cards");
|
|
|
|
if (HttpContext.Session.GetString("authorized") != "true") {
|
|
Response.Redirect($"/Login?&redir={Request.GetDisplayUrl().UrlEncode()}");
|
|
return;
|
|
}
|
|
}
|
|
|
|
Card saved. Redirecting... |