public bool ifLiked() { var getitems = (User.FindFirst(ClaimTypes.NameIdentifier).Value == null) ? false: _PictureInfoService.ifLiked(User.FindFirst(ClaimTypes.NameIdentifier).Value, thisWorkInfo.work_id); return(getitems); }
public async Task <bool> ifLiked(String getuser_ID, String getwork_ID) { var getitems = await _PictureInfoService.ifLiked(User.FindFirst(ClaimTypes.NameIdentifier).Value, getwork_ID); return(getitems); }