示例#1
0
 public async Task RemoveAsync(PromoCategory category)
 {
     _context.PromoCategories.Remove(category);
     await _context.SaveChangesAsync();
 }
示例#2
0
 public async Task UpdateAsync(PromoCategory category)
 {
     _context.PromoCategories.Update(category);
     await _context.SaveChangesAsync();
 }
示例#3
0
 public async Task AddAsync(PromoCategory category)
 {
     _context.Add(category);
     await _context.SaveChangesAsync();
 }