Example #1
0
 public IActionResult OnGet(string id)
 {
     Author = dataAcces.GetAuthor(id);
     if (Author == null)
     {
         return(NotFound());
     }
     else
     {
         return(Page());
     }
 }
Example #2
0
 public IActionResult OnGet(string id)
 {
     Author = dataAcces.GetAuthor(id);
     Items  = dataAcces.GetItemsOfAuthor(Author.Id);
     return(Page());
 }