Example #1
0
 public async Task UpdateBrandAsync(BrandDTO brand)
 {
     db.BrandRepository.Update(brand.Adapt <Brand>());
     await db.Save();
 }
Example #2
0
 public async Task AddBrandAsync(BrandDTO brand)
 {
     db.BrandRepository.Add(brand.Adapt <Brand>());
     await db.Save();
 }