public IActionResult CreateOrder(Order order)
        {
            _context.Orders.Add(order);
            _context.SaveChanges();

            return(Ok(order));
        }
        public IActionResult CreateProduct(Product product)
        {
            _context.Products.Add(product);
            _context.SaveChanges();

            return(Ok(product));
        }
Esempio n. 3
0
        public IActionResult CreateCustomer(Customer customer)
        {
            _context.Customers.Add(customer);
            _context.SaveChanges();

            return(Ok(customer));
        }
Esempio n. 4
0
        public IActionResult CreateDriver(Driver driver)
        {
            _context.Drivers.Add(driver);
            _context.SaveChanges();

            return(Ok(driver));
        }