public ActionResult AddAttributePointToAnCharacter(int characterId, int attributeInCharacterId)
        {
            Character character = CharacterDAO.Get(characterId);

            if (character.AttributePoints > 0)
            {
                AttributeInCharacter attributeInCharacter = AttributeInCharacterDAO.Get(attributeInCharacterId);

                attributeInCharacter.ProficiencyPoints++;
                character.AttributePoints--;

                CharacterDAO.Update(character);
                AttributeInCharacterDAO.Update(attributeInCharacter);
            }
            return(RedirectToAction("Index", "Home", null));
        }
        public ActionResult IsCharacterEnvolved()
        {
            Character character = CharacterDAO.Get(Convert.ToInt32(SessionManager.GetCharacterId()));

            if (character.Experience >= character.Level * 10)
            {
                character.Level           += 1;
                character.Experience       = 0;
                character.Coins           += 10;
                character.LifePoints      += 5;
                character.AttributePoints += 1;
                CharacterDAO.Update(character);
                FlashMessage.Confirmation("Evolução ", "Parabéns, você passou de level!!!");
                return(RedirectToAction("Index", "Home"));
            }

            FlashMessage.Confirmation(":) ", "Parabéns, você ganhou esse duelo!!!");
            return(RedirectToAction("Ranking", "Home"));
        }