Ejemplo n.º 1
0
        public ActionResult Insert()
        {
            ViewBag.Message = "Your app description page.";

            DropdownModel model        = new DropdownModel();
            DropdownModel modelAnimal  = new DropdownModel();
            GetLookups    myGetLookups = new GetLookups();

            model = myGetLookups.GeLookupAnimal();
            ViewData["animalTypeData"] = model.items;

            Story myStory = new Story();

            myStory.animalCombo = model;

            //modelAnimal = model;

            model = myGetLookups.GeLookupMoral();
            ViewData["moralTypeData"] = model.items;

            model = myGetLookups.GeLookupStorySource();
            ViewData["storySourceData"] = model.items;

            //model = myGetLookups.GeLookupJakataMaster();
            model = myGetLookups.GeLookupJakataMasterFilter();
            ViewData["jakataMasterData"] = model.items;

            model = myGetLookups.GetStoryCategorytName();
            ViewData["StoryCategorytNameData"] = model.items;



            return(View(myStory));
        }