@page
@using Microsoft.AspNetCore.Http
@using JtkMainServer.Managers
@{
    Layout = null;
    var placeId = HttpContext.Request.Query["placeId"][0];
    var user = HttpContext.Session.GetString("LoggedInUserId");
    if (string.IsNullOrWhiteSpace(user) || user != "admin") {
        placeId = "";
    }
}
@(DbManager.DeletePlace(placeId.Trim())?"ok":"error")