public ActionResult Destroy([DataSourceRequest] DataSourceRequest request, ComplaintViewModel model) { if (model != null) { _complaintService.Destroy(model); } return(Json(new[] { model }.ToDataSourceResult(request, ModelState))); }