コード例 #1
0
        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);
        }
コード例 #2
0
        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));
        }