Esempio n. 1
0
 public async Task <ActionResult <CompanyAuthenticationProfileModel> > GetCompanyProfile() => await Exec(async operation =>
 {
     var(_, id)  = VerifyUser(UserRole.Company);
     var profile = await userAuthenticationService.GetCompanyProfile(operation, id);
     return(new CompanyAuthenticationProfileModel
     {
         YandexMapsApiKey = configuration["Plugins:YandexMaps:ApiKey"],
         DadataApiKey = configuration["Plugins:DaData:ApiKey"]
     }.ToModel(profile));
 });