Exemplo n.º 1
0
 public async Task <CompanyResult> SaveAsync(string SessionKey, Company Company)
 {
     return(await authorizationProcessor.DoAuthorizeAsync(SessionKey, async token =>
     {
         var result = await companyProcessor.SaveAsync(Company, token);
         return new CompanyResult
         {
             ProcessResult = new ProcessResult {
                 Result = true
             },
             Company = result
         };
     }, logger));
 }
Exemplo n.º 2
0
 public async Task <ActionResult <Company> > Save(Company company, CancellationToken token)
 => await companyProcessor.SaveAsync(company, token);