@page
@using Microsoft.AspNetCore.Http
@using Microsoft.AspNetCore.Http.Extensions
@model TicketModel
@{
    ViewData["Title"] = "Ticket";

    if (HttpContext.Session.GetString("authorized") != "true") {
        Response.Redirect($"/Login?&redir={Request.GetDisplayUrl().UrlEncode()}");
        return;
    }

    Response.Redirect("/Trip?id=" + Model.TripId + "&edit=true");
}

Ticket saved. Redirecting...