public async Task <IActionResult> Index()
        {
            var orders = await _ordersManagementAPI.GetOrders();

            foreach (var order in orders)
            {
                order.ImageString = ConvertAndFormatToString(order.ImageData);
            }

            return(View(orders));
        }
 public async Task <List <OrderViewModel> > GetOrders()
 {
     return(await _restClient.GetOrders());
 }