/// <summary> /// Gets the first Page of the community (The non deletable page with sort order 1) /// </summary> /// <param name="n"></param> /// <returns></returns> public static HitblPagePag GetFirstPage(Guid communityID) { Guid fisrtPageID = (Guid)SPs.HispCommunityGetFirstPageID(communityID).ExecuteScalar(); return(HitblPagePag.FetchByID(fisrtPageID)); }
/// <summary> /// Gets the current Page of the community and set it in the user settings /// If the user has already visitetd the page it will be read form his settings, else page id with order 1 will come /// </summary> /// <param name="n"></param> /// <returns></returns> public static HitblPagePag GetCurrPage(Guid communityID, Guid userId) { Guid fisrtPageID = (Guid)SPs.HispCommunityGetCurrPageID(communityID, userId).ExecuteScalar(); return(HitblPagePag.FetchByID(fisrtPageID)); }