private Edit ( string hashTag ) : System.Web.Mvc.ActionResult | ||
hashTag | string | |
return | System.Web.Mvc.ActionResult |
public ActionResult Edit(string hashTag)
{
var conference = YouConfDbContext.Conferences
.FirstOrDefault(x => x.HashTag == hashTag);
if (conference == null)
{
return HttpNotFound();
}
if (!IsCurrentUserAuthorizedToAdministerConference(conference))
{
return HttpUnauthorized();
}
return View(conference);
}
ConferenceController::Edit ( string currentHashTag, |