public ActionResult Destroy([DataSourceRequest]DataSourceRequest request, RailsModel viewModel) { var error = this.LoadModel<RailsModel, bool>(false).Delete(viewModel, this.ModelState); if (error != null) { return this.Json(error); } return this.GridOperation(viewModel, request); }
public ActionResult Destroy([DataSourceRequest] DataSourceRequest request, RailsModel viewModel) { var error = this.LoadModel <RailsModel, bool>(false).Delete(viewModel, this.ModelState); if (error != null) { return(this.Json(error)); } return(this.GridOperation(viewModel, request)); }