public async Task <IActionResult> Get() { var userId = _httpContextAccessor.HttpContext.User.FindFirst("Id").Value; return(Ok(await _orderStore.GetOrders(userId))); }
public void WriteOutOrder() { var orders = _orderStore.GetOrders(); _orderWriter.WriteOrders(orders); }