public async Task Invoke(HttpContext context, IGreetingService greetingService) { await context.Response.WriteAsync(greetingService.Greeting("Xin chao")); await next(context); }
public string Action(string name) => _greetingService.Greeting(name);
public string Index(string name) { return(_greetingService.Greeting(name)); }