public async Task AlterChapter(ChapterUpdateRequest request) { var chapter = await this.chapterRepository.GetAsync(request.ChapterId); await chapter.AlterNameAsync(request.Name); }
public async Task AlterChapter([FromRoute] Guid chapterId, ChapterUpdateRequest request) { request.ChapterId = chapterId; await this.chapterApplication.AlterChapter(request); }