예제 #1
0
        public async Task <Products> Add(Products products)
        {
            await _context.Products.AddAsync(products);

            await _context.SaveChangesAsync();

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

            await _context.SaveChangesAsync();

            return(sales);
        }
예제 #3
0
        public async Task <Customer> Add(Customer customer)
        {
            await _context.Customer.AddAsync(customer);

            await _context.SaveChangesAsync();

            return(customer);
        }