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