public async Task <ActionResult <IEnumerable <OrderSummary> > > GetOrdersAsync(int userId) { //TODO: int -> Guid var orders = await _orderQueries.GetOrdersFromUserAsync(userId); return(Ok(orders)); }
public async Task <ActionResult <IEnumerable <OrderSummary> > > GetOrdersAsync() { var userid = _identityService.GetUserIdentity(); var orders = await _orderQueries.GetOrdersFromUserAsync(Guid.Parse(userid)); return(Ok(orders)); }
public async Task <IActionResult> GetOrders() { var userid = _identityService.GetUserIdentity(); var orders = await _orderQueries.GetOrdersFromUserAsync(Guid.Parse(userid)); return(Ok(orders)); }
public Task <IEnumerable <OrderSummary> > GetOrdersAsync() => _orderQueries.GetOrdersFromUserAsync(Guid.NewGuid());
public async Task <IEnumerable <OrderSummary> > Handle(GetOrdersFromUserQuery request, CancellationToken cancellationToken) { return(await _orderQueries.GetOrdersFromUserAsync(request.CustomerId)); }