コード例 #1
0
        public IActionResult AddComment(Comments newComment)
        {
            var getitems = _PictureInfoService.AddComment(User.FindFirst(ClaimTypes.NameIdentifier).Value, thisWorkInfo.work_id, newComment.addComment);

            return(RedirectToAction("Index", new { id = thisWorkInfo.work_id }));
        }
コード例 #2
0
        public IActionResult AddComment(String words)
        {
            var getitems = _PictureInfoService.AddComment(User.FindFirst(ClaimTypes.NameIdentifier).Value, getwork_ID, words);

            return(View("Index"));
        }