kendo-labs / dlinq-helpers

Add server paging, filtering and sorting via Dynamic Linq
71 stars 70 forks source link

Kendo Grid api Server Error Handling #28

Open aliebrahimi2015 opened 7 years ago

aliebrahimi2015 commented 7 years ago

hi how to Error Handling when Create or update record (inline and incell) with kendo api?

[HttpPost] public virtual async Task CreatePersonnels([Bind(Prefix = "models")]IEnumerable models) { _accountService.Value.AddPersonnels(new List(model); await _unitOfWork.SaveAllChangesAsync(); } var queryString = Request.Url.ParseQueryString().GetKey(0); var request = JsonConvert.DeserializeObject(queryString); var resultData = new List(); return Json(resultData.AsQueryable().ToDataSourceResult(request, ModelState)); } ModelState not use with ToDataSourceResult

how to use server error in client? thank you