// 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); }
public Order(IOrderDAO dao, IClient client) { this.flowers = new List <IFlower>(); this.isDelivered = isDelivered(); Client = Client; Id = dao.AddOrder(client); }
public Order(IOrderDAO dao, IClient client) { Id = dao.AddOrder(client); }
public IActionResult Create([FromBody] Order order) { int id = orderDao.AddOrder(order); return(Ok(id)); }
public Order(IOrderDAO dao, IClient client) { this.dao = dao; Id = dao.AddOrder(client); }
public Order(IOrderDAO dao, IClient client) { this.flowers = new List <IFlower>(); Id = dao.AddOrder(client); d = dao; }
public Order(IOrderDAO dao, IClient client) { Id = dao.AddOrder(client); this.DAO = dao; /// }
public Order(IOrderDAO dao, IClient client) { TheDoa = dao; Id = dao.AddOrder(client); }
public Order(IOrderDAO dao, IClient client) { Id = dao.AddOrder(client); this.myOrder = dao; }