예제 #1
0
        public async Task <IActionResult> Get()
        {
            var userId = _httpContextAccessor.HttpContext.User.FindFirst("Id").Value;

            return(Ok(await _orderStore.GetOrders(userId)));
        }
예제 #2
0
        public void WriteOutOrder()
        {
            var orders = _orderStore.GetOrders();

            _orderWriter.WriteOrders(orders);
        }