示例#1
0
        public async Task <RuntimeResult> AddSkillAsync(string name, Special special)
        {
            if (_statService.NameExists(name))
            {
                return(StatisticResult.StatisticAlreadyExists());
            }

            var newSkill = new Skill
            {
                Name    = name,
                Special = special,
                Aliases = name + "/"
            };

            await _statService.AddStatisticAsync(newSkill);

            return(GenericResult.FromSuccess(Messages.SKILLS_ADDED));
        }