Exemplo n.º 1
0
        public async Task <IActionResult> LeaveComment(ViewChapterViewModel model)
        {
            var author = await userManager.FindByNameAsync(User.Identity.Name);

            fanficService.CreateComment(model.FanficId, author, model.CommentContent);
            return(Redirect("/Fanfic/ViewChapter/?fanficId=" + model.FanficId + "&number=" + model.ChapterNumber));
        }