public ActionResult Edit(int id) { Content c = contentManagerService.Get(id); if (!RolePermissionService.CanAccess(c)) { throw new Exception("You do not have permission to access this content."); } FillViewData(TransformToView(c), c); return(View("Editor", viewData)); }