Esempio n. 1
0
 public IActionResult OnGet(int collegeId)
 {
     College = collegeData.GetById(collegeId);
     if (College == null)
     {
         return(RedirectToPage("./NotFound"));
     }
     return(Page());
 }
 public IActionResult OnGet(int collegeId)
 {
     College = collegeData.GetById(collegeId);
     //Restaurant = new Restaurant();
     //Restaurant.Id = restaurantId;
     if (College == null)
     {
         return(RedirectToPage("./NotFound"));
     }
     return(Page());
 }
Esempio n. 3
0
 public IActionResult OnGet(int?collegeId)
 {
     Cuisines = htmlHelper.GetEnumSelectList <CuisineType>(); // use for edit menu wise
     if (collegeId.HasValue)
     {
         College = collegeData.GetById(collegeId.Value);
     }
     else
     {
         College = new College();
     }
     //Restaurant = restaurantData.GetById(restaurantId);
     if (College == null)
     {
         return(RedirectToPage("./NotFound"));
     }
     return(Page());
 }