コード例 #1
0
 public IActionResult ParkImages(int ParkNumber, string parkName)
 {
     if (ParkNumber > 0 && ParkNumber < 60)
     {
         dynamic ParkImagesAndDetails = new ExpandoObject();
         var     ParkList             = new ParkList();
         ParkList.ParkNumber = ParkNumber;
         ParkList.ParkName   = parkName;
         ParkImagesAndDetails.ParkDetails = ParkList;
         var parkImages = _repository.GetParkImages(ParkNumber);
         ParkImagesAndDetails.ParkImages = parkImages;
         return(View(ParkImagesAndDetails));
     }
     else
     {
         return(Error());
     }
 }