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 })); }
public IActionResult AddComment(String words) { var getitems = _PictureInfoService.AddComment(User.FindFirst(ClaimTypes.NameIdentifier).Value, getwork_ID, words); return(View("Index")); }