public JsonResult Update(Role Role) { bool result; Role oldRoles = _rb.Get(Role.Id); oldRoles.Name = Role.Name; try { result = _rb.Update(oldRoles); return(Json(new { msg = result }, JsonRequestBehavior.AllowGet)); } catch (Exception ex) { return(Json(ex, JsonRequestBehavior.AllowGet)); } }
public Framework.Common.Service.Message.ResponseDto Update(Framework.Common.CommonBase.BaseDto dto) { roleBussiness.Update((RoleDto)dto); return(ResponseBuilder.GetResponse(dto)); }