Esempio n. 1
0
 public async Task <GridSettingsResult> GetItemsAsync(string SessionKey, int CompanyId, int LoginUserId, int?GridId)
 {
     return(await authorizationProcessor.DoAuthorizeAsync(SessionKey, async token =>
     {
         var result = (await gridSettingProcessor.GetAsync(new GridSettingSearch {
             CompanyId = CompanyId,
             LoginUserId = LoginUserId,
             GridId = GridId,
         }, token)).ToList();
         return new GridSettingsResult
         {
             ProcessResult = new ProcessResult {
                 Result = true
             },
             GridSettings = result,
         };
     }, logger));
 }
Esempio n. 2
0
 public async Task <ActionResult <IEnumerable <GridSetting> > > GetItems(GridSettingSearch option, CancellationToken token)
 => (await gridSettingProcessor.GetAsync(option, token)).ToArray();