Exemple #1
0
        public async Task AddAsync(Comment comment)
        {
            await _entities.AddAsync(comment);

            await _entities.SaveChangesAsync();
        }
Exemple #2
0
        public async Task AddAsync(Rating rating)
        {
            await _entities.AddAsync(rating);

            await _entities.SaveChangesAsync();
        }
Exemple #3
0
        public async Task AddAsync(Product product)
        {
            await _entities.Products.AddAsync(product);

            await _entities.SaveChangesAsync();
        }
Exemple #4
0
        public async Task AddAsync(User user)
        {
            await _entities.Users.AddAsync(user);

            await _entities.SaveChangesAsync();
        }