Esempio n. 1
0
 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));
 }
Esempio n. 2
0
 public async Task <ActionResult <int> > GetUniqueGroupCount([FromBody] IEnumerable <int> ids, CancellationToken token)
 => await customerGroupProcessor.GetUniqueGroupCountAsync(ids, token);