コード例 #1
0
        public ActionResult ManageCategory_Destroy([DataSourceRequest] DataSourceRequest request, CRM_CourseCategoryMapping _objPhoneNumbers)
        {
            if (ModelState.IsValid)
            {
                _objPhoneNumbers.UpdatedBy = CurrentUser.NameIdentifierInt64;
                _objPhoneNumbers.UpdatedOn = DateTime.Now;
                var results = _PersonBAL.ManageCategory_DeleteBAL(_objPhoneNumbers);
                if (results == -1)
                {
                    ModelState.AddModelError(lr.ErrorServerError, lr.ResourceUpdateValidationError);
                }
            }
            var resultData = new[] { _objPhoneNumbers };

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