protected override void Render(HtmlTextWriter output) { if (Enabled) { if (CurrentIndex < 0) { CurrentIndex = 0; } JournalParser jp = new JournalParser(portalSettings, ModuleId, ProfileId, SocialGroupId, userInfo); output.Write(jp.GetList(CurrentIndex, PageSize)); } }
public HttpResponseMessage GetListForProfile(GetListForProfileDTO postData) { try { var jp = new JournalParser(PortalSettings, ActiveModule.ModuleID, postData.ProfileId, postData.GroupId, UserInfo); return Request.CreateResponse(HttpStatusCode.OK, jp.GetList(postData.RowIndex, postData.MaxRows), "text/html"); } catch (Exception exc) { Logger.Error(exc); throw new HttpException(500, exc.Message); } }
public string GetListForProfile(int profileId, int groupId, int rowIndex, int maxRows) { try { var jp = new JournalParser(PortalSettings, ActiveModule.ModuleID, profileId, groupId, UserInfo); return jp.GetList(rowIndex, maxRows); } catch (Exception exc) { DnnLog.Error(exc); return string.Empty; } }