public ActionResult Edit(int id) { ViewBag.AdminPermissions = _adminPermissionService.GetSequenceData(); var model = _adminRoleService.GetById(id); if (model == null) { return(PageNotFound()); } return(View(model)); }