//Photos/Details/5
        public IActionResult Details(int id)
        {
            //get the model
            Photo photo = repository.GetSinglePhoto(id);

            //return the view with the model in it
            return(View(photo));
        }
Beispiel #2
0
 public void OnGet(int id)
 {
     //get the model
     Photo = repository.GetSinglePhoto(id);
     //return the view with the model in it
 }