//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)); }
public void OnGet(int id) { //get the model Photo = repository.GetSinglePhoto(id); //return the view with the model in it }