示例#1
0
 public List <Pizza> GetAll()
 {
     return(_pizzaService.GetAllPizza());
 }
示例#2
0
        public IActionResult Index()
        {
            List <PizzaListViewModel> pizzaListViewModels = _pizzaService.GetAllPizza();

            return(View(pizzaListViewModels));
        }
示例#3
0
        public IActionResult GetAllPizza()
        {
            var pizza = pizzaService.GetAllPizza();

            return(Ok(pizza));
        }