public static PlayableCharacter CreateNewCharacter(DungeonsAndDragonsContext _context, int userId, string characterName, int speciesId, int baseHP, int baseAttack, string imagePath, int currentHp)
        {
            PlayableCharacter character = new PlayableCharacter()
            {
                userid = userId, name = characterName, species_id = speciesId, maxHp = baseHP, attack = baseAttack, imagePath = imagePath, currentHp = currentHp
            };

            _context.playablecharacters.Add(character);
            _context.SaveChanges();

            return(character);
        }
        public static GameUser GenerateCharacter(DungeonsAndDragonsContext _context, int gamesUsersId, int userId, int speciesId, string characterName)
        {
            Species species = Models.Species.GetSpeciesByID(_context, speciesId);

            PlayableCharacter newCharacter = Models.PlayableCharacter.CreateNewCharacter(_context, userId, characterName, speciesId, species.base_hp, species.base_attack, species.image_path, species.base_hp);

            GameUser AssignedCharacter = Models.GameUser.AssignCharacterToGamePlayer(_context, gamesUsersId, newCharacter.id);

            Inventory Coins = Models.Inventory.addItemToInventory(_context, newCharacter.id, 6, 100);

            Inventory Potion = Models.Inventory.addItemToInventory(_context, newCharacter.id, 1, 1);

            return(AssignedCharacter);
        }