Пример #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);
        }