public async Task Invoke(HttpContext context, IGreetingService greetingService)
        {
            await context.Response.WriteAsync(greetingService.Greeting("Xin chao"));

            await next(context);
        }
Esempio n. 2
0
 public string Action(string name) =>
 _greetingService.Greeting(name);
 public string Index(string name)
 {
     return(_greetingService.Greeting(name));
 }