Example #1
0
        // GET: CharRace
        public ActionResult Index()
        {
            var service = new CharRaceServices();
            var model   = service.GetRaces();

            return(View(model));
        }
Example #2
0
        // GET: Character/Create
        public ActionResult Create()
        {
            var charRaceService = new CharRaceServices();
            var raceList        = charRaceService.GetRaces();

            ViewBag.CharRaceID = new SelectList(raceList, "ID", "RaceName");

            var charClassService = new CharClassServices();
            var classList        = charClassService.GetClasses();

            ViewBag.CharClassID = new SelectList(classList, "ID", "ClassName");

            return(View());
        }