Exemple #1
0
        public ActionResult _partial(int id)
        {
            var modelDB = new modelClass();

            modelDB.selectedRecipe = id.ToString();
            modelDB.db             = db;
            return(PartialView(modelDB));
        }
Exemple #2
0
        public ActionResult RecipesView()
        {
            ViewBag.Category = db.Category.ToList();
            ViewBag.Users    = db.AspNetUsers.ToList();

            var modelDB = new modelClass();

            modelDB.db = db;
            return(View(modelDB));
        }