public IActionResult EditHouse(House selectedHouse) { //Open Edit house window with existing house using (IPropertyRepository propRep = new PropertyRepository()) { selectedHouse.Photos = propRep.SelectPhotos(selectedHouse.MLSNum); } return(View("~/Views/Property/EditProperty.cshtml", selectedHouse)); }