Пример #1
0
 public ActionResult BasicStats(BasicStats data, string prevBtn, string nextBtn)
 {
     Character obj = GetCharacter();
     if (prevBtn != null)
     {
         BasicDetails bd = new BasicDetails();
         bd.CharakterName = obj.Name;
         bd.Gender = obj.Gender;
         bd.Age= obj.Age;
         bd.Concept = obj.Concept;
         bd.Description = obj.Description;
         
         return View("BasicDetails", bd);
     }
     if (nextBtn != null)
     {
         if (ModelState.IsValid)
         {
             obj.Assets = data.Assets;
             obj.SagaSkills = data.SagaSkills;
             obj.Traits = data.Traits;
             return View("Finishing");
         }
     }
     return View();
 }
Пример #2
0
        public ActionResult BasicDetails(BasicDetails data, string prevBtn, string nextBtn)
        {
            if (nextBtn != null)
            {
                if (ModelState.IsValid)
                {
                    Character obj = GetCharacter();
                    obj.Name= data.CharakterName;
                    obj.Gender = data.Gender;
                    obj.Age = data.Age;
                    obj.Concept = data.Concept;
                    obj.Description = data.Description;
                    return View("BasicStats");
                }
            }
            return View();

        }