/// <summary> /// Returns HTMLContentInfo containing HTML text by poralID, usermoduleID and culture name. /// </summary> /// <param name="PortalID">portalID</param> /// <param name="UsermoduleID">userModuleID</param> /// <param name="CultureName">Culture name</param> /// <returns>Returns HTMLContentInfo containing HTML </returns> public HTMLContentInfo HtmlTextGetByPortalAndUserModule(int PortalID, int UsermoduleID, string CultureName) { try { HTMLDataProvider objProvider = new HTMLDataProvider(); HTMLContentInfo objHtmlContent = objProvider.HtmlTextGetByPortalAndUserModule(PortalID, UsermoduleID, CultureName); return(objHtmlContent); } catch (Exception e) { throw e; } }
/// <summary> /// Returns HTML comments by HTMLCommentID. /// </summary> /// <param name="PortalID">portalID</param> /// <param name="HTMLCommentID">HTMLCommentID</param> /// <returns>Returns HTML Comments</returns> public HTMLContentInfo HtmlCommentGetByHTMLCommentID(int PortalID, int HTMLCommentID) { try { HTMLDataProvider objProvider = new HTMLDataProvider(); HTMLContentInfo htmlInfo = objProvider.HtmlCommentGetByHTMLCommentID(PortalID, HTMLCommentID); return(htmlInfo); } catch (Exception e) { throw e; } }
/// <summary> /// Returns the HTML content for given portal , username and culture. /// </summary> /// <param name="PortalID">portalID</param> /// <param name="UsermoduleID">usermoduleID</param> /// <param name="CultureName">Culturename</param> /// <returns>returns HTMLContentInfo object</returns> public HTMLContentInfo GetHTMLContent(int PortalID, int UsermoduleID, string CultureName) { try { HTMLDataProvider objProvider = new HTMLDataProvider(); HTMLContentInfo htmlContentInfo = objProvider.GetHTMLContent(PortalID, UsermoduleID, CultureName); return(htmlContentInfo); } catch (Exception e) { throw e; } }
public HTMLContentInfo GetHTMLContent(int PortalID, int UsermoduleID, string CultureName) { try { List <KeyValuePair <string, object> > ParaMeterCollection = new List <KeyValuePair <string, object> >(); ParaMeterCollection.Add(new KeyValuePair <string, object>("@PortalID", PortalID)); ParaMeterCollection.Add(new KeyValuePair <string, object>("@UsermoduleID", UsermoduleID)); ParaMeterCollection.Add(new KeyValuePair <string, object>("@CultureName", CultureName)); SQLHandler sagesql = new SQLHandler(); HTMLContentInfo objHtmlInfo = sagesql.ExecuteAsObject <HTMLContentInfo>("dbo.sp_HtmlTextGetByPortalAndUserModule", ParaMeterCollection); return(objHtmlInfo); } catch (Exception e) { throw e; } }