예제 #1
0
 // used when we already have an order with an Id.
 public Order(IOrderDAO dao, IClient client, bool isDelivered = false)
 {
     this.flowers     = new List <Flower>();
     this.isDelivered = isDelivered;
     Client           = client;
     Id = dao.AddOrder(client);
 }
예제 #2
0
        public Order(IOrderDAO dao, IClient client)
        {
            this.flowers     = new List <IFlower>();
            this.isDelivered = isDelivered();
            Client           = Client;

            Id = dao.AddOrder(client);
        }
예제 #3
0
 public Order(IOrderDAO dao, IClient client)
 {
     Id = dao.AddOrder(client);
 }
        public IActionResult Create([FromBody] Order order)
        {
            int id = orderDao.AddOrder(order);

            return(Ok(id));
        }
예제 #5
0
 public Order(IOrderDAO dao, IClient client)
 {
     this.dao = dao;
     Id       = dao.AddOrder(client);
 }
예제 #6
0
 public Order(IOrderDAO dao, IClient client)
 {
     this.flowers = new List <IFlower>();
     Id           = dao.AddOrder(client);
     d            = dao;
 }
예제 #7
0
 public Order(IOrderDAO dao, IClient client)
 {
     Id       = dao.AddOrder(client);
     this.DAO = dao; ///
 }
예제 #8
0
 public Order(IOrderDAO dao, IClient client)
 {
     TheDoa = dao;
     Id     = dao.AddOrder(client);
 }
예제 #9
0
 public Order(IOrderDAO dao, IClient client)
 {
     Id           = dao.AddOrder(client);
     this.myOrder = dao;
 }