Beispiel #1
0
        public void Delete(Brand brand)
        {
            Brand _brand = _brandsList.SingleOrDefault(b => brand.BrandId == b.BrandId);

            _brandsList.Remove(_brand);
        }
Beispiel #2
0
        public void Update(Brand brand)
        {
            Brand _brand = _brandsList.SingleOrDefault(b => brand.BrandId == b.BrandId);

            _brand.BrandName = brand.BrandName;
        }
Beispiel #3
0
 public void Add(Brand brand)
 {
     _brandsList.Add(brand);
 }