public async Task RemoveAsync(PromoCategory category) { _context.PromoCategories.Remove(category); await _context.SaveChangesAsync(); }
public async Task UpdateAsync(PromoCategory category) { _context.PromoCategories.Update(category); await _context.SaveChangesAsync(); }
public async Task AddAsync(PromoCategory category) { _context.Add(category); await _context.SaveChangesAsync(); }