Пример #1
0
        public ActionResult Destroy([DataSourceRequest] DataSourceRequest request, FabricAndLamelsModel viewModel)
        {
            var error = this.LoadModel <FabricAndLamelsModel, bool>(false).Delete(viewModel, this.ModelState);

            if (error != null)
            {
                return(this.Json(error));
            }

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

            if (error != null)
            {
                return this.Json(error);
            }

            return this.GridOperation(viewModel, request);
        }