コード例 #1
0
 JsonResult TryContext(MyData data) => new JsonResult(new { greetings = $"Hello {data.Name}" });
コード例 #2
0
 IResult TryContext(MyData data) => Results.Json(new { greetings = $"Hello {data.Name}" });
コード例 #3
0
 JsonResult TryContext([FromServices] MyData data) => new JsonResult(new { greetings = $"Hello {data.Name}" });