Example #1
0
 public async Task RemoveTagAsync(SliderItem item)
 {
     _context.SliderItems.Remove(item);
     await _context.SaveChangesAsync();
 }
Example #2
0
 public async Task UpdateSliderItemAsync(SliderItem item)
 {
     _context.SliderItems.Update(item);
     await _context.SaveChangesAsync();
 }
Example #3
0
        public async Task AddSliderItemAsync(SliderItem item)
        {
            await _context.SliderItems.AddAsync(item);

            _context.SaveChanges();
        }