public ViewResult List() { PizzaListViewModel viewModel = new PizzaListViewModel { Pizzas = repository.Pizzas .Where(p => p.Status == "Available") }; return(View(viewModel)); }
public PizzaListPage(string nomResto, string addresseResto, int idShop) { _nomResto = nomResto; _addresseResto = addresseResto; _idShop = idShop; panierpizzId = new(); prix = 0; BindingContext = new PizzaListViewModel(_idShop); InitializeComponent(); nomRestaurantLabel.Text = nomResto; addresseRestaurantLabel.Text = addresseResto; }
public PizzaListPage(long idshop) { InitializeComponent(); BindingContext = new PizzaListViewModel(idshop); }
public PizzaListView() { this.InitializeComponent(); Model = new PizzaListViewModel(); }