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)); }
public async Task <ActionResult <IEnumerable <CompanyLogo> > > SaveLogos(IEnumerable <CompanyLogo> logos, CancellationToken token) => (await companyLogoProcessor.SaveAsync(logos, token)).ToArray();