Пример #1
0
 public TerminalMiddleware(RequestDelegate next, Greeting greet)
 {
     _greet = greet;
 }
Пример #2
0
 object Greet([FromBody] Greeting greet, HttpContext context)
 => new { Message = context.Request.Method + ":" + greet.Message };
Пример #3
0
 JsonResult Greet([FromBody] Greeting greet) => new JsonResult(new { greet.Message });
Пример #4
0
 public ActionResult <Greeting> Relay(Greeting greet)
 {
     return(greet);
 }