Esempio n. 1
0
        public async Task AddPricesAsync(CategoriesPrices categoriesPrices)
        {
            await _context.CategoriesPrices.AddAsync(categoriesPrices);

            await _context.SaveChangesAsync();
        }
Esempio n. 2
0
 public async Task UpdatePricesAsync(CategoriesPrices categoriesPrices)
 {
     _context.CategoriesPrices.Update(categoriesPrices);
     await _context.SaveChangesAsync();
 }
Esempio n. 3
0
 /// <summary>
 /// Remove Prices.
 /// </summary>
 /// <param name="categoriesPrices">CategoriesPrices class
 public void Remove(CategoriesPrices categoriesPrices)
 {
     _context.CategoriesPrices.Remove(categoriesPrices);
     _context.SaveChanges();
 }