Exemplo n.º 1
0
        public List <PizzaType> GetAll()
        {
            var result = _pizzaTypeRepository.GetAll().ToList();

            return(result);
        }
        // GET: /<controller>/
        public IActionResult Index()
        {
            var model = pizzaTypeRepository.GetAll();

            return(View(model));
        }