public async Task Add(Product product)
        {
            await context.Products.AddAsync(product);

            await context.SaveChangesAsync();
        }
Exemple #2
0
        public async Task Add(Client client)
        {
            await context.AddAsync(client);

            await context.SaveChangesAsync();
        }
Exemple #3
0
        public async Task Add(Payment payment)
        {
            await context.AddAsync(payment);

            await context.SaveChangesAsync();
        }
        public async Task Add(Order order)
        {
            await context.AddAsync(order);

            await context.SaveChangesAsync();
        }
Exemple #5
0
        public async Task Add(Category category)
        {
            await context.AddAsync(category);

            await context.SaveChangesAsync();
        }