Exemple #1
0
        public ActionResult Index()
        {
            ViewBag.ModelIsNotValid = TempData["ModelIsNotValid"];
            var sauces = _repository.GetAll().ToList();

            return(View("Index", sauces));
        }
Exemple #2
0
        public List <Sauce> GetAllSauces()
        {
            var result = _sauceRepository.GetAll().ToList();

            return(result);
        }