public MainViewModel() { ListaPrincipal = new ListView(); _personBusiness = new PersonBusiness(); People = _personBusiness.GetPeople(); ListaAux = People; ListaPrincipal.ItemsSource = People; ListViewClicked = new Command(() => { Global.PersonSelected = PersonSelected; MessagingCenter.Send <PersonModel>(PersonSelected, "ShowDetail"); }); }
// GET: Person public ActionResult Index() { var people = personBusiness.GetPeople(); return(View(people)); }