Exemplo n.º 1
0
        public ActionResult Delete(ProductTypeRowModel[] model)
        {
            foreach (var item in model)
            {
                _productTypeService.Delete(item.Id);
            }

            return AjaxForm().ReloadPage();
        }
Exemplo n.º 2
0
        public ActionResult Disable(ProductTypeRowModel[] model)
        {
            foreach (var item in model)
            {
                var type = _productTypeService.GetById(item.Id);
                _productTypeService.Disable(type);
            }

            return AjaxForm().ReloadPage();
        }