public void Delete(Brand brand) { Brand _brand = _brandsList.SingleOrDefault(b => brand.BrandId == b.BrandId); _brandsList.Remove(_brand); }
public void Update(Brand brand) { Brand _brand = _brandsList.SingleOrDefault(b => brand.BrandId == b.BrandId); _brand.BrandName = brand.BrandName; }
public void Add(Brand brand) { _brandsList.Add(brand); }