16 lines
407 B
Plaintext
16 lines
407 B
Plaintext
@page
|
|
@using Microsoft.AspNetCore.Http
|
|
@using Microsoft.AspNetCore.Http.Extensions
|
|
@model OEAPIModel
|
|
@{
|
|
ViewData["Title"] = "OEAPI";
|
|
|
|
if (HttpContext.Session.GetString("authorized") != "true") {
|
|
Response.Redirect($"/Login?&redir={Request.GetDisplayUrl().UrlEncode()}");
|
|
return;
|
|
}
|
|
|
|
Response.Redirect("/Trip?id=" + Model.TripId + "&edit=true");
|
|
}
|
|
|
|
Trip saved. Redirecting... |