Esempio n. 1
0
        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));
            }
        }
Esempio n. 2
0
 public int Update(Persons input, int id)
 {
     return(clientAccess.Update(input, id));
 }