Ejemplo n.º 1
0
        public async Task <IHttpActionResult> GetCurrentUserOrders()
        {
            Guid userId = new Guid(this.User.Identity.GetUserId());

            OrdersProvider           ordersProvider = new OrdersProvider();
            IEnumerable <OrderModel> userOrders     = await ordersProvider.GetOrdersByUserId(userId);

            return(this.Ok(userOrders));
        }