Example #1
0
 public string UpdateChapter(Guid userId, [FromBody] ChapterDTO chapter)
 {
     return(chapterService.UpdateChapter(userId, chapter) ? "Success" : "Fail");
 }
Example #2
0
        public string CreateChapter([FromBody] ChapterDTO chapter)
        {
            string response = chapterService.CreateChapter(chapter);

            return(response.Equals("") ? "Fail" : "Success:" + response);
        }