public IActionResult Details(int Id) { //var ACModel = _ACRepository.GetAircraftbyRegistration(reg); var ACModel = _ACRepository.GetAircraftbyID(Id); var model = new HomeACModel() { aircraft = ACModel }; return(View(model)); }
public IActionResult Details(int Id) { //var ACModel = _ACRepository.GetAircraftbyRegistration(reg); var ACModel = _ACRepository.GetAircraftbyID(Id); var model = new HomeACModel() { aircraft = ACModel }; return(View(model)); }