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 <IActionResult> GetPictureInfo() { var getitems = await _PictureInfoService.GetPictureInfo(getwork_ID); return(Ok(getitems)); }