示例#1
0
 public async Task <ControlColorResult> SaveAsync(string SessionKey, ControlColor ControlColor)
 {
     return(await authorizationProcessor.DoAuthorizeAsync(SessionKey, async token =>
     {
         var result = await controlcolorProcessor.SaveAsync(ControlColor, token);
         return new ControlColorResult
         {
             ProcessResult = new ProcessResult {
                 Result = true
             },
             Color = (result == null) ? null : new ControlColor[] { result },
         };
     }, logger));
 }
示例#2
0
 public async Task <ActionResult <ControlColor> > Save(ControlColor color, CancellationToken token)
 => await controlcolorProcessor.SaveAsync(color, token);