public ActionResult Details(string hashTag)
{
var conference = YouConfDbContext
.Conferences
.Include(x => x.Administrators)
.FirstOrDefault(x => x.HashTag == hashTag);
if (conference == null)
{
return HttpNotFound();
}
ViewBag.CurrentUserCanEdit = false;
if (User.Identity.IsAuthenticated)
{
ViewBag.CurrentUserCanEdit = IsCurrentUserAuthorizedToAdministerConference(conference);
}
return View(conference);
}