public static List<OCNoticeResponse> GetCommentList(int NoticeID, int PageSize, int PageIndex) { OCNoticeBLL noticeBLL = new OCNoticeBLL(); OCNoticeResponse notice = new OCNoticeResponse(); notice.NoticeID = NoticeID; List<OCNoticeResponse> responseList = new List<OCNoticeResponse>(); responseList = noticeBLL.NoticeResponse_List(notice, PageIndex, PageSize); //for (int i = 0; i < responseList.Count; i++) //{ // responseList[i].ImgFileUrl = FileService.UserIMGURL(responseList[i].UserID); //} return responseList; }
public static OCNoticeResponse NoticeResponse_ADD(int NoticeID, string RConten) { IES.JW.Model.User user = IES.Service.UserService.CurrentUser; OCNoticeBLL noticeBLL = new OCNoticeBLL(); OCNoticeResponse noticeResponse = new OCNoticeResponse(); noticeResponse.ResponseID = -1; noticeResponse.NoticeID = NoticeID; noticeResponse.Conten = RConten; noticeResponse.UserID = user.UserID; noticeResponse.UserName = user.UserName; noticeResponse = noticeBLL.NoticeResponse_ADD(noticeResponse); noticeResponse.ResponseTimeStr = "刚刚发表"; //noticeResponse.ImgFileUrl = FileService.UserIMGURL(user.UserID); return noticeResponse; }