Beispiel #1
0
 public async Task <DestinationsResult> GetItemsAsync(string SessionKey, DestinationSearch option)
 => await authorizationProcessor.DoAuthorizeAsync(SessionKey, async token => {
     var result = (await destinationProcessor.GetAsync(option, token)).ToList();
     return(new DestinationsResult {
         Destinations = result,
         ProcessResult = new ProcessResult {
             Result = true
         },
     });
 }, logger);
Beispiel #2
0
 public async Task <ActionResult <IEnumerable <Destination> > > GetItems(DestinationSearch option, CancellationToken token)
 => (await destinationProcessor.GetAsync(option, token)).ToArray();