Esempio n. 1
0
        public FoodTruckList()
        {
            InitializeComponent();

            this.foodTruckListViewModel = new FoodTruckListViewModel();

            FoodTruckDetailList.ItemsSource = this.foodTruckListViewModel.GetFoodTruckList();
        }
Esempio n. 2
0
        public IActionResult Index()
        {
            List <FoodTruckListViewModel> models = FoodTruckListViewModel.GetFoodTruckListViewModels(context);

            return(View(models));
        }