Beispiel #1
0
        public IActionResult Index()
        {
            IList <Recipe> recipes = new List <Recipe>();

            recipes = recipeDAO.GetAllRecipes();
            return(View(recipes));
        }
        public ActionResult <IList <Recipe> > GetAll()
        {
            IList <Recipe> recipes = dao.GetAllRecipes();

            // Return 200 OK
            return(Ok(recipes));
        }