Exemple #1
0
        /// <summary>
        /// Retrieves all quests associated to the given account key.
        /// </summary>
        /// <param name="accountKey">Unique identifier of the account for which to get all quests.</param>
        /// <returns>An awaitable task that returns a collection of <see cref="QuestDto"/>.</returns>
        public async Task <IEnumerable <QuestDto> > GetQuestForAccountAsync(Guid accountKey)
        {
            var quests = await questRepository.GetQuestsForAccountAsync(accountKey);

            return(quests.ToList().ToDtos());
        }