public IActionResult Index(string id) { var getitems = _PictureInfoService.GetPictureInfo(id); thisWorkInfo.work_id = id; thisWorkInfo.user_id = getitems.First().user_ID; thisWorkInfo.workName = getitems.First().picture; ViewBag.workuser_ID = getitems.First().user_ID; ViewBag.picture = getitems.First().picture; Comments comments = new Comments() { comments = _PictureInfoService.GetCommentInfo(id) }; return(View(comments)); }
public async Task <List <CommentsNeededItem> > GetCommentInfo() { var getitems = await _PictureInfoService.GetCommentInfo(getwork_ID); return(getitems); }