Beispiel #1
0
        public DTO.Order CreateOrder(DTO.Order newOrder)
        {
            var order  = _customerServices.CreateOrder(newOrder);
            var order2 = _customerServices.GetOrder(order.OrderId);

            return(order2);
        }
Beispiel #2
0
        public DTO.Order CreateOrder(DTO.Order newOrder)
        {
            var dao = DTO.Order.toDAO(newOrder);

            var order = _repository.CreateOrder(dao);
            var dao2  = _repository.GetOrder(order.OrderId);

            var dto = DTO.Order.fromDAO(dao2);

            return(dto);
        }