Ejemplo n.º 1
0
 public async Task <ControlColorResult> GetAsync(string SessionKey, int CompanyId, int LoginuserId)
 {
     return(await authorizationProcessor.DoAuthorizeAsync(SessionKey, async token =>
     {
         var result = await controlcolorProcessor.GetAsync(CompanyId, LoginuserId, token);
         return new ControlColorResult
         {
             ProcessResult = new ProcessResult {
                 Result = true
             },
             Color = (result == null) ? null : new ControlColor[] { result },
         };
     }, logger));
 }
Ejemplo n.º 2
0
 public async Task <ActionResult <ControlColor> > Get(ControlColor color, CancellationToken token)
 => await controlcolorProcessor.GetAsync(color.CompanyId, color.LoginUserId, token);