public async Task <Quest> Post([FromBody] QuestCreateInfo info) { var newQuest = Quest.Create(info); await repository.AddOne(newQuest); return(newQuest); }
public static Quest Create(QuestCreateInfo info) { var quest = new Quest { Poster = info.Poster, Reward = (int)info.Reward, Description = info.Description }; return(quest); }