public ActionResult Index() { var man = repo.GetAll().FirstOrDefault() ?? new Person { Id = 1, FirstName = "foo", LastName = "bar" }; var input = new AutocompleteDemoInput { Character2 = man.FirstName + " " + man.LastName, Character2Id = man.Id }; return View(input); }
public ActionResult Index(AutocompleteDemoInput input) { return View(input); }