// GET: CharClass/Details/5 public ActionResult Details(int id) { var service = new CharClassServices(); var model = service.GetClassById(id); return(View(model)); }
// GET: CharClass/Edit/5 public ActionResult Edit(int id) { var service = new CharClassServices(); var detail = service.GetClassById(id); var model = new CharClassEdit { ID = detail.ID, ClassName = detail.ClassName, SpellCaster = detail.SpellCaster, HitPointsFirstLevel = detail.HitPointsFirstLevel, Proficiencies = detail.Proficiencies }; return(View(model)); }