public async Task <Quest> Post([FromBody] QuestCreateInfo info)
        {
            var newQuest = Quest.Create(info);
            await repository.AddOne(newQuest);

            return(newQuest);
        }
예제 #2
0
        public static Quest Create(QuestCreateInfo info)
        {
            var quest = new Quest
            {
                Poster      = info.Poster,
                Reward      = (int)info.Reward,
                Description = info.Description
            };

            return(quest);
        }