public async Task <CountResult> GetUniqueGroupCountAsync(string SessionKey, int[] Ids) { return(await authorizationProcessor.DoAuthorizeAsync(SessionKey, async token => { var result = await customerGroupProcessor.GetUniqueGroupCountAsync(Ids, token); return new CountResult { ProcessResult = new ProcessResult { Result = true }, Count = result, }; }, logger)); }
public async Task <ActionResult <int> > GetUniqueGroupCount([FromBody] IEnumerable <int> ids, CancellationToken token) => await customerGroupProcessor.GetUniqueGroupCountAsync(ids, token);