public OrderDto CreateOrder(CreateOrderDto dto) { var order = _mapper.Map <Order>(dto); order.Customer = _context.GetCustomer(dto.CustomerId); _orderService.CreateOrder(order); var orderfromDb = OrderDataContext.LoadOrder(order.Id); return(_mapper.Map <OrderDto>(orderfromDb)); }