public async Task <QueryResult <KeyValuePair <string, string>[]> > Handle( UserCampaignsQuery request, CancellationToken cancellationToken) { var result = await _campaignReadAccessor.GetCampaigns(request.UserId); return(QueryResult <KeyValuePair <string, string>[]> .GetSuccessResult(result)); }
public async Task <QueryResult <IReadOnlyList <string> > > Handle( DefaultCampaignsQuery request, CancellationToken cancellationToken) { var campaigns = await _campaignReadAccessor .GetCampaigns(request.Term, request.Amount); return(GetSuccessResult(campaigns)); }