protected void btnSave_OnServerClick(object sender, EventArgs e)
        {
            string brandName = Request.Form["brandname"];

            _brandDal.Add(new Brand
            {
                BrandName = brandName,
                Logo      = _imagePath + brandLogo.Value
            });

            End("Brand Added!");
        }
Example #2
0
 public void Add(Brand item)
 {
     _dal.Add(item);
 }