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