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)); }
public async Task <ActionResult <IEnumerable <SectionWithLoginUser> > > Save(MasterImportData <SectionWithLoginUser> data, CancellationToken token) => (await sectionWithLoginUserProcessor.SaveAsync(data.InsertItems, data.DeleteItems, token)).ToArray();