public virtual ActionResult AddOrUpdateAssignmentRole(UserRoleModel userRoleModel) { try { if (!ModelState.IsValid) { return(Json(new { isError = true, Msg = "ورودی نا معتبر!" })); } var data = _personManagementService.AddOrUpdateAssignmentRole(userRoleModel); return(Json(new { isError = !data.Item1, Msg = data.Item2 })); } catch (Exception ex) { return(Json(new { isError = true, Msg = "خطا در ثبت اطلاعات!" })); } }