Exemplo n.º 1
0
        public ActionResult ManageProposedCourses_Destroy([DataSourceRequest] DataSourceRequest request, CRM_CourseMapping _objPhoneNumbers)
        {
            if (ModelState.IsValid)
            {
                _objPhoneNumbers.UpdatedBy = CurrentUser.NameIdentifierInt64;
                _objPhoneNumbers.UpdatedOn = DateTime.Now;
                var results = _PersonBAL.ManageProposedCourses_DeleteBAL(_objPhoneNumbers);
                if (results == -1)
                {
                    ModelState.AddModelError(lr.ErrorServerError, lr.ResourceUpdateValidationError);
                }
            }
            var resultData = new[] { _objPhoneNumbers };

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