示例#1
0
        // 1392/11/06 تست شد
        public JsonResult MoneyAccountEmployees_Delete(IEnumerable <DeleteMoneyAccountEmployeeRequest> requests, Guid MoneyAccountID)
        {
            GeneralResponse response = new GeneralResponse();

            #region Check Access
            bool hasPermission = GetEmployee().IsGuaranteed("MoneyAccount_Delete");
            if (!hasPermission)
            {
                ModelState.AddModelError("", "AccessDenied");
                return(Json(response, JsonRequestBehavior.AllowGet));
            }
            #endregion

            response = _moneyAccountEmployeeService.DeleteMoneyAccountEmployee(requests, MoneyAccountID);

            return(Json(response, JsonRequestBehavior.AllowGet));
        }