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)); }
public async Task <ActionResult <ControlColor> > Get(ControlColor color, CancellationToken token) => await controlcolorProcessor.GetAsync(color.CompanyId, color.LoginUserId, token);