Esempio n. 1
0
        public ActionResult Destroy([DataSourceRequest] DataSourceRequest request, BlindsModel viewModel)
        {
            var error = this.LoadModel <BlindsModel, bool>(false).Delete(viewModel);

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

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

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

            return this.GridOperation(viewModel, request);
        }