Esempio n. 1
0
        public async Task <int> SaveDesignedCharacter(GameCharacter character)
        {
            if (ModelState.IsValid)
            {
                string userId = User.Claims.First(c => c.Type == "UserID").Value;

                var result = await _characterManager.SaveDesignedCharacter(character, userId);

                return(result);
            }
            return(0);
        }