This repository has been archived on 2023-04-02. You can view files and clone it, but cannot push or open issues or pull requests.
trainav/bahnplan.web/Pages/Delete.cshtml

17 lines
349 B
Plaintext
Raw Normal View History

2020-06-11 20:29:16 +02:00
@page
@using Microsoft.AspNetCore.Http
@using bahnplan.web.database
@using System.Linq
@model DeleteModel
@{
ViewData["Title"] = "Home";
if (HttpContext.Session.GetString("authorized") != "true") {
Response.Redirect("/");
return;
}
Layout = null;
Response.Redirect(Request.Headers["Referer"]);
}