Esempio n. 1
0
 public IActionResult OnGet(int expertId)
 {
     Expert = expertData.GetById(expertId);
     if (Expert == null)
     {
         return(RedirectToPage("./NotFound"));
     }
     return(Page());
 }
 public IActionResult OnGet(int expertId)
 {
     Expert = expertData.GetById(expertId);
     if (Expert == null)
     {
         return(RedirectToPage("./NotFound"));
     }
     Input = new InputModel
     {
         firstName = Expert.firstName,
         lastName  = Expert.lastName,
         specialty = Expert.specialty,
         bio       = Expert.bio,
         userId    = Expert.userId
     };
     return(Page());
 }