Esempio n. 1
0
 public async Task <DestinationResult> SaveAsync(string SessionKey, Destination Destination)
 => await authorizationProcessor.DoAuthorizeAsync(SessionKey, async token =>
 {
     var result = await destinationProcessor.SaveAsync(Destination, token);
     return(new DestinationResult
     {
         ProcessResult = new ProcessResult {
             Result = true
         },
         Destination = result,
     });
 }, logger);
Esempio n. 2
0
 public async Task <ActionResult <Destination> > Save(Destination destination, CancellationToken token)
 => await destinationProcessor.SaveAsync(destination, token);