Exemple #1
0
 public IActionResult List()
 {
     return(Json(new
     {
         posts = service.GetAllPosts()
     }));
 }