/// <summary> /// 查询指定文章关联的其它文章信息 /// </summary> public APIResponseEntity <XCLCMS.Data.Model.Custom.ArticleRelationDetailModel> RelationDetail(APIRequestEntity <long> request) { var response = new APIResponseEntity <XCLCMS.Data.Model.Custom.ArticleRelationDetailModel>(); var condition = new Data.Model.Custom.ArticleRelationDetailCondition() { ArticleID = request.Body, ArticleRecordState = XCLCMS.Data.CommonHelper.EnumType.RecordStateEnum.N.ToString(), TopCount = 6 }; response.Body = articleBLL.GetRelationDetail(condition); response.IsSuccess = true; return(response); }
public async Task <APIResponseEntity <XCLCMS.Data.Model.Custom.ArticleRelationDetailModel> > RelationDetail([FromUri] APIRequestEntity <long> request) { return(await Task.Run(() => { var response = new APIResponseEntity <XCLCMS.Data.Model.Custom.ArticleRelationDetailModel>(); var condition = new Data.Model.Custom.ArticleRelationDetailCondition() { ArticleID = request.Body, IsASC = false, ArticleRecordState = XCLCMS.Data.CommonHelper.EnumType.RecordStateEnum.N.ToString(), TopCount = 6 }; response.Body = articleBLL.GetRelationDetail(condition); response.IsSuccess = true; return response; })); }