Ejemplo n.º 1
0
        public async Task <ActionResult <IEnumerable <OrderItemViewModel> > > Get()
        {
            var list = await _collectionGetter.GetAsync(null, x => x.Product, x => x.Customer);

            return(Ok(list));
        }
Ejemplo n.º 2
0
        public async Task <ActionResult <IEnumerable <Customer> > > Get()
        {
            var list = await _collectionGetter.GetAsync(null);

            return(Ok(list));
        }