Esempio n. 1
0
        public async Task <ActionResult <IEnumerable <OrderViewModel> > > GetUserOrdersAsync(int userId)
        {
            // UserId should be in the auth token
            IEnumerable <OrderViewModel> orders = await _queries.GetOrderFromUserAsync(userId);

            return(Ok(orders));
        }