public async Task <ActionResult> GetOrderAsync(int orderNumber) { try { var order = await _orderRepository.GetOrderByOrderNumberAsync(orderNumber); return(Ok(OrderDto.FromOrder(order))); } catch { return(NotFound()); } }