// GET: CharRace public ActionResult Index() { var service = new CharRaceServices(); var model = service.GetRaces(); return(View(model)); }
// 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()); }