Example #1
0
        public ViewResult List()
        {
            PizzaListViewModel viewModel = new PizzaListViewModel
            {
                Pizzas = repository.Pizzas
                         .Where(p => p.Status == "Available")
            };


            return(View(viewModel));
        }
Example #2
0
 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;
 }
Example #3
0
 public PizzaListPage(long idshop)
 {
     InitializeComponent();
     BindingContext = new PizzaListViewModel(idshop);
 }
Example #4
0
        public PizzaListView()
        {
            this.InitializeComponent();

            Model = new PizzaListViewModel();
        }