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)))); }
public Task <GoogleAdto> GetAsync(GetGoogleAdto getGoogleAdto) { return(_securityApplicationService.SecureAsync(() => _googleAuthenticationServiceApplicationService.GetAsync(getGoogleAdto), DefaultAuthorisationContext.Create(AuthorisationResource.AuthenticationService, AuthorisationAction.Get))); }