Exemple #1
0
        public async Task <OrderModel> LimitOrderStatusAsync(string orderId)
        {
            InternalOrder internalOrder = await _internalOrderService.GetByIdAsync(orderId);

            if (internalOrder == null)
            {
                throw new ValidationApiException(HttpStatusCode.NotFound, "Order not found");
            }

            return(Mapper.Map <OrderModel>(internalOrder));
        }
        public async Task <InternalOrderModel> GetByIdAsync(string internalOrderId)
        {
            InternalOrder internalOrder = await _internalOrderService.GetByIdAsync(internalOrderId);

            return(Mapper.Map <InternalOrderModel>(internalOrder));
        }