public ActionResult ContactEnrollmentForm(int?id) { HomeService homeService = new HomeService(); ContactForm contactForm = new ContactForm(); contactForm.CompanyKey = 1; contactForm.ContactId = id ?? 0; contactForm.ContactFormDetails = homeService.ContactFormDetails(id); return(View(contactForm)); }