예제 #1
0
        // GET: CharClass/Details/5
        public ActionResult Details(int id)
        {
            var service = new CharClassServices();
            var model   = service.GetClassById(id);

            return(View(model));
        }
예제 #2
0
        // 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));
        }