Ejemplo n.º 1
0
 public async Task <SectionWithLoginUserResult> SaveAsync(string SessionKey, SectionWithLoginUser[] AddList, SectionWithLoginUser[] DeleteList)
 {
     return(await authorizationProcessor.DoAuthorizeAsync(SessionKey, async token =>
     {
         var result = (await sectionWithLoginUserProcessor.SaveAsync(AddList, DeleteList, token)).First();
         return new SectionWithLoginUserResult
         {
             ProcessResult = new ProcessResult {
                 Result = true
             },
             SectionWithLoginUser = result,
         };
     }, logger));
 }
Ejemplo n.º 2
0
 public async Task <ActionResult <IEnumerable <SectionWithLoginUser> > > Save(MasterImportData <SectionWithLoginUser> data, CancellationToken token)
 => (await sectionWithLoginUserProcessor.SaveAsync(data.InsertItems, data.DeleteItems, token)).ToArray();