Exemplo n.º 1
0
        public async Task <IActionResult> SayHello(string name)
        {
            if (string.IsNullOrEmpty(name))
            {
                return(BadRequest());
            }

            // Forward the call to the greeter service
            var response = await _service.SayHello(new HelloRequest { Name = name }, null);

            return(Ok(response));
        }
Exemplo n.º 2
0
 public string Get()
 {
     return(greeterService.SayHello());
 }