Пример #1
0
        public async Task AddAsync(Product product)
        {
            await _context.Products.AddAsync(product);

            await _context.SaveChangesAsync();
        }
Пример #2
0
        public async Task AddAsync(Exercise exercise)
        {
            await _context.Exercises.AddAsync(exercise);

            await _context.SaveChangesAsync();
        }
        public async Task AddAsync(RefreshToken refreshToken)
        {
            await _context.RefreshTokens.AddAsync(refreshToken);

            await _context.SaveChangesAsync();
        }
Пример #4
0
 public async Task DeleteAsync(User user)
 {
     _context.Users.Remove(user);
     await _context.SaveChangesAsync();
 }
Пример #5
0
        public async Task AddAsync(Athlete athlete)
        {
            await _context.Athletes.AddAsync(athlete);

            await _context.SaveChangesAsync();
        }