public ActionResult Statement(long id) { var model = _problemsService.GetStatement(id); if (model == null) { return(HttpNotFound()); } return(View(model)); }
public ActionResult Statement(long id) { var isAdmin = this.User.IsInRole("admin"); var model = _problemsService.GetStatement(id, isAdmin); if (model == null) { return(HttpNotFound()); } return(View(model)); }