15 lines
324 B
Plaintext
15 lines
324 B
Plaintext
@page
|
|
@using Microsoft.AspNetCore.Http
|
|
@model TicketModel
|
|
@{
|
|
ViewData["Title"] = "Ticket";
|
|
|
|
if (HttpContext.Session.GetString("authorized") != "true") {
|
|
Response.Redirect("/");
|
|
return;
|
|
}
|
|
|
|
Response.Redirect("/Trip?id=" + Model.TripId + "&edit=true");
|
|
}
|
|
|
|
Ticket saved. Redirecting... |