Esempio n. 1
0
 public ActionResult CreateCharacter(UICharacterModel model)
 {
     if (!ModelState.IsValid)
     {
         return View("Index", model);
     }
     var p = new Player();
     p.SetName(model.Name);
     Session["Player"] = p;
     return View("Character", p);
 }