Beispiel #1
0
        public async Task Delete(FollowModel model)
        {
            var modelToUpdate = await _context.Follows.FirstOrDefaultAsync(s => s.Id == model.Id);

            _context.Remove(modelToUpdate);
            await _context.SaveChangesAsync();
        }
Beispiel #2
0
        public async Task Add(UserProfileModel model)
        {
            await _context.AddAsync(model.Entity);

            await _context.SaveChangesAsync();
        }
        public async Task Add(ProductModel model)
        {
            await _context.AddAsync(model.Entity);

            await _context.SaveChangesAsync();
        }