Example #1
0
        public async Task <IActionResult> Get(Guid id)
        {
            GoogleAdto googleAdto = await
                                    _googleAuthenticationServiceApplicationService.GetAsync(new GetGoogleAdto
            {
                Id = id
            });

            return(Ok(_resourceBuilder.Build(_mapper.Map <GoogleAdto, GoogleAuthenticationServiceResource>(googleAdto))));
        }
Example #2
0
 public Task <GoogleAdto> GetAsync(GetGoogleAdto getGoogleAdto)
 {
     return(_securityApplicationService.SecureAsync(() => _googleAuthenticationServiceApplicationService.GetAsync(getGoogleAdto),
                                                    DefaultAuthorisationContext.Create(AuthorisationResource.AuthenticationService, AuthorisationAction.Get)));
 }