public string UpdateChapter(Guid userId, [FromBody] ChapterDTO chapter) { return(chapterService.UpdateChapter(userId, chapter) ? "Success" : "Fail"); }
public string CreateChapter([FromBody] ChapterDTO chapter) { string response = chapterService.CreateChapter(chapter); return(response.Equals("") ? "Fail" : "Success:" + response); }