public TerminalMiddleware(RequestDelegate next, Greeting greet) { _greet = greet; }
object Greet([FromBody] Greeting greet, HttpContext context) => new { Message = context.Request.Method + ":" + greet.Message };
JsonResult Greet([FromBody] Greeting greet) => new JsonResult(new { greet.Message });
public ActionResult <Greeting> Relay(Greeting greet) { return(greet); }