public ActionResult Select(int id, SearchModel m) { if (m.List.AsEnumerable().Any(li => li.PeopleId == id)) return View("List", m); var p = DbUtil.Db.LoadPersonById(id); var s = new SearchPersonModel { PeopleId = id, FamilyId = m.type == "family" ? m.typeid.Value : p.FamilyId, first = p.FirstName, goesby = p.NickName, last = p.LastName, marital = p.MaritalStatusId, email = p.EmailAddress, suffix = p.SuffixCode, title = p.TitleCode, dob = p.DOB, gender = p.GenderId, phone = p.CellPhone, context = m.type, }; s.LoadFamily(); m.List.Add(s); if (m.OnlyOne) return Complete(m.typeid.ToString(), m); return View("List", m); }