public async Task <IEnumerable <OrderViewModel> > GetClientOrders(string clientName)
        {
            var items = cache.Get <IEnumerable <OrderViewModel> >($"all{clientName}");

            if (items != null)
            {
                return(items);
            }

            items = await safeOrderService.GetClientOrders(clientName);

            cache.AddOrUpdate($"all{clientName}", items);
            return(items);
        }
Ejemplo n.º 2
0
 public async Task <IEnumerable <OrderViewModel> > GetClientOrders(string clientName)
 {
     return(await safeOrderService.GetClientOrders(clientName));
 }