コード例 #1
0
 public async Task <CompanyLogoResult> SaveLogoAsync(string SessionKey, CompanyLogo CompanyLogo)
 {
     return(await authorizationProcessor.DoAuthorizeAsync(SessionKey, async token =>
     {
         var result = (await companyLogoProcessor.SaveAsync(new[] { CompanyLogo }, token)).First();
         return new CompanyLogoResult
         {
             ProcessResult = new ProcessResult {
                 Result = true
             },
             CompanyLogo = result
         };
     }, logger));
 }
コード例 #2
0
 public async Task <ActionResult <IEnumerable <CompanyLogo> > > SaveLogos(IEnumerable <CompanyLogo> logos, CancellationToken token)
 => (await companyLogoProcessor.SaveAsync(logos, token)).ToArray();