public ActionResult Edit(ClientAccess model) { if (!CurUser.HasAccess(AdGroup.ServiceClaimClientAccess)) { RedirectToAction("AccessDenied", "Error"); } try { ResponseMessage responseMessage; bool complete = model.Update(out responseMessage); if (!complete) { throw new Exception(responseMessage.ErrorMessage); } return(RedirectToAction("List")); } catch (Exception ex) { TempData["error"] = ex.Message; return(View("Edit", model)); } }
public int Update(Persons input, int id) { return(clientAccess.Update(input, id)); }