public async Task <ChapterCreateResponse> CreateChapterAsync(ChapterCreateRequest request)
        {
            var chapter = await ChapterDomain.CreateAsync(request.Name);

            return(new ChapterCreateResponse
            {
                ChapterId = chapter.ChapterId
            });
        }
Esempio n. 2
0
 public async Task <ChapterCreateResponse> CreateChapter(ChapterCreateRequest request)
 {
     return(await this.chapterApplication.CreateChapterAsync(request));
 }