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!");
        }
コード例 #2
0
ファイル: BrandManager.cs プロジェクト: gok2689/RentaCar
 public void Delete(int Id)
 {
     _dal.Delete(Id);
 }