public async Task <Products> Add(Products products)
        {
            await _context.Products.AddAsync(products);

            await _context.SaveChangesAsync();

            return(products);
        }
Beispiel #2
0
        public async Task <SalesPersons> Add(SalesPersons sales)
        {
            await _context.SalesPersons.AddAsync(sales);

            await _context.SaveChangesAsync();

            return(sales);
        }
        public async Task <Customer> Add(Customer customer)
        {
            await _context.Customer.AddAsync(customer);

            await _context.SaveChangesAsync();

            return(customer);
        }