public async Task <SettingsResult> GetItemsAsync(string SessionKey, string[] ItemId) { return(await authorizationProcessor.DoAuthorizeAsync(SessionKey, async token => { var result = (await settingProcessor.GetAsync(ItemId, token)).ToList(); return new SettingsResult { ProcessResult = new ProcessResult { Result = true }, Settings = result, }; }, logger)); }
public async Task <ActionResult <IEnumerable <Setting> > > GetItems([FromBody] IEnumerable <string> ItemIds, CancellationToken token) => (await settingProcessor.GetAsync(ItemIds, token)).ToArray();