Пример #1
0
        public ActionResult ManageRecordCall_Destroy([DataSourceRequest] DataSourceRequest request, CRM_CallManager _objPhoneNumbers)
        {
            if (ModelState.IsValid)
            {
                _objPhoneNumbers.UpdatedBy = CurrentUser.NameIdentifierInt64;
                _objPhoneNumbers.UpdatedOn = DateTime.Now;
                var results = _PersonBAL.ManageRecordCall_DeleteBAL(_objPhoneNumbers);
                if (results == -1)
                {
                    ModelState.AddModelError(lr.ErrorServerError, lr.ResourceUpdateValidationError);
                }
            }
            var resultData = new[] { _objPhoneNumbers };

            return(Json(resultData.AsQueryable().ToDataSourceResult(request, ModelState)));
        }