public async Task Delete(FollowModel model) { var modelToUpdate = await _context.Follows.FirstOrDefaultAsync(s => s.Id == model.Id); _context.Remove(modelToUpdate); await _context.SaveChangesAsync(); }
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(); }