Exemple #1
0
        public async Task AddNewLocation(Location location)
        {
            await Locations.AddAsync(location);

            await _context.SaveChangesAsync();
        }
Exemple #2
0
        public async Task AddOrder(Order order)
        {
            await Orders.AddAsync(order);

            await _context.SaveChangesAsync();
        }
Exemple #3
0
        public async Task AddItem(Item item)
        {
            await Items.AddAsync(item);

            await _context.SaveChangesAsync();
        }
Exemple #4
0
        public async Task AddNewSupplier(Supplier supplier)
        {
            await Suppliers.AddAsync(supplier);

            await _context.SaveChangesAsync();
        }
Exemple #5
0
        public async Task AddNewCustomerLocation(CustomerLocation customerLocation)
        {
            await CustomerLocations.AddAsync(customerLocation);

            await _context.SaveChangesAsync();
        }
Exemple #6
0
        public async Task AddNewProduct(Product product)
        {
            await Products.AddAsync(product);

            await _context.SaveChangesAsync();
        }
Exemple #7
0
        public async Task AddNewKind(Kind kind)
        {
            await Kinds.AddAsync(kind);

            await _context.SaveChangesAsync();
        }
Exemple #8
0
        public async Task AddNewAdministrator(Administrator administrator)
        {
            await Administrators.AddAsync(administrator);

            await _context.SaveChangesAsync();
        }
Exemple #9
0
        public async Task AddNewCustomer(Customer customer)
        {
            await Customers.AddAsync(customer);

            await _context.SaveChangesAsync();
        }
Exemple #10
0
        public async Task AddNewProductSupplier(ProductSupplier ps)
        {
            await ProductSuppliers.AddAsync(ps);

            await _context.SaveChangesAsync();
        }