public ActionResult Index() { ViewBag.Greeting = "Bienvenido"; PropertiesResume propertiesResume = new PropertiesResume(); var repository = new PropertyRepository(); propertiesResume.Properties = repository.GetAll().Take(9).ToList(); return(View(propertiesResume)); }
private void GetControlls() { foreach (var property in _PropertyRepository.GetAll()) { var label = new Label { Text = property.Name }; var input = new Entry(); //input.SetBinding (Entry.TextProperty, Model.Properties.Where(p => p.Name == property.Name)); Layout.Children.Add(label); Layout.Children.Add(input); } }
public IEnumerable <Property> Get() { return(db.GetAll()); }
protected override void OnAppearing() { List.ItemsSource = _PropertyRepository.GetAll(); }