@RenderBody()
@using System.Diagnostics @using OliverBooth.Data.Blog @using OliverBooth.Data.Web @using OliverBooth.Services @inject IBlogPostService BlogPostService @inject IUserService UserService @inject ISessionService SessionService @{ HttpRequest request = Context.Request; var url = new Uri($"{request.Scheme}://{request.Host}{request.Path}{request.QueryString}"); var currentPage = ViewContext.RouteData.Values["page"]?.ToString(); SessionService.TryGetSession(request, out ISession? session); IUser? user = null; if (session is not null) { UserService.TryGetUser(session.UserId, out user); } Debug.Assert(user is not null); }
@if (ViewData["Title"] != null) {