public ActionResult Update([DataSourceRequest] DataSourceRequest request, CatViewModel item) { if (item != null && ModelState.IsValid) { repo.Update(item); } return(Json(new[] { item }.ToDataSourceResult(request, ModelState))); }