public void DelBrand(string BrandId) { try { if (bll.DeleteBrand(BrandId)) { Tz888.Common.MessageBox.ShowAndRedirect(this.Page, "删除成功!", "BrandManage.aspx", false); } else { Tz888.Common.MessageBox.ShowAndRedirect(this.Page, "删除失败!", "BrandManage.aspx", false); } } catch (Exception ex) { throw new Exception(ex.Message); } }
public void Delete(int id) { _dB.DeleteBrand(id); }
public IActionResult DeleteConfirmed(int?id) { _dB.DeleteBrand(id); return(RedirectToAction("Index")); }