public async Task AlterChapter(ChapterUpdateRequest request)
        {
            var chapter = await this.chapterRepository.GetAsync(request.ChapterId);

            await chapter.AlterNameAsync(request.Name);
        }
Example #2
0
        public async Task AlterChapter([FromRoute] Guid chapterId, ChapterUpdateRequest request)
        {
            request.ChapterId = chapterId;

            await this.chapterApplication.AlterChapter(request);
        }