public ActionResult Index(ObjectId id) { if (id == null) { return(RedirectToAction("Index", "Contact")); } var model = contactService.GetContact(id).ToModel(); var websites = websiteService.GetContactWebsites(id); if (websites == null) { websites = new List <Website>(); } model.Websites = websites.Select(x => x.ToModel()).ToList(); return(View(model)); }