protected void btnDelete_OnServerClick(object sender, EventArgs e) { string brandName = Request.Form["brandname"]; int brandId = _brandDal.GetID(brandName); _brandDal.Delete(new Brand { BrandID = brandId, }); End("Product Deleted!"); }
public void Delete(int Id) { _dal.Delete(Id); }