Esempio n. 1
0
 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);
     }
 }
Esempio n. 2
0
 public void Delete(int id)
 {
     _dB.DeleteBrand(id);
 }
Esempio n. 3
0
 public IActionResult DeleteConfirmed(int?id)
 {
     _dB.DeleteBrand(id);
     return(RedirectToAction("Index"));
 }