public int AddUpdate(WebBuilderInfo objWebBuilder) { int webbuilderID = 0; try { List <KeyValuePair <string, object> > param = new List <KeyValuePair <string, object> >(); param.Add(new KeyValuePair <string, object>("@WebBuilderID", objWebBuilder.WebBuilderID)); param.Add(new KeyValuePair <string, object>("@EditDOM", objWebBuilder.EditDOM)); param.Add(new KeyValuePair <string, object>("@ViewDOM", objWebBuilder.ViewDOM)); param.Add(new KeyValuePair <string, object>("@PortalID", objWebBuilder.PortalID)); param.Add(new KeyValuePair <string, object>("@UserModuleID", objWebBuilder.UserModuleID)); param.Add(new KeyValuePair <string, object>("@Culture", objWebBuilder.Culture)); param.Add(new KeyValuePair <string, object>("@UserName", objWebBuilder.UserName)); param.Add(new KeyValuePair <string, object>("@Extra", objWebBuilder.Extra)); param.Add(new KeyValuePair <string, object>("@Settings", objWebBuilder.Settings)); param.Add(new KeyValuePair <string, object>("@PageName", objWebBuilder.PageName)); param.Add(new KeyValuePair <string, object>("@Header", objWebBuilder.Header)); param.Add(new KeyValuePair <string, object>("@HeaderEdit", objWebBuilder.HeaderEdit)); param.Add(new KeyValuePair <string, object>("@Footer", objWebBuilder.Footer)); param.Add(new KeyValuePair <string, object>("@FooterEdit", objWebBuilder.FooterEdit)); param.Add(new KeyValuePair <string, object>("@PackageXML", objWebBuilder.PackageXML)); SQLHandler sagesql = new SQLHandler(); webbuilderID = sagesql.ExecuteNonQuery("[dbo].[usp_WebBuilder_AddUpdate]", param, "@webbuildernewID"); } catch { throw; } return(webbuilderID); }
public WebBuilderInfo GetPublishedViewDOMByID(WebBuilderInfo objWebBuilder) { try { List <KeyValuePair <string, object> > param = new List <KeyValuePair <string, object> >(); param.Add(new KeyValuePair <string, object>("@PortalID", objWebBuilder.PortalID)); param.Add(new KeyValuePair <string, object>("@UserModuleID", objWebBuilder.UserModuleID)); param.Add(new KeyValuePair <string, object>("@Culture", objWebBuilder.Culture)); param.Add(new KeyValuePair <string, object>("@PageName", objWebBuilder.PageName)); SQLHandler sagesql = new SQLHandler(); return(sagesql.ExecuteAsObject <WebBuilderInfo>("[dbo].[usp_WebBuilder_GetPublishedViewDOMByID]", param)); } catch { throw; } }
public int UpdateSettings(WebBuilderInfo objWebBuilder) { int webbuilderID = 0; try { List <KeyValuePair <string, object> > param = new List <KeyValuePair <string, object> >(); param.Add(new KeyValuePair <string, object>("@PortalID", objWebBuilder.PortalID)); param.Add(new KeyValuePair <string, object>("@UserModuleID", objWebBuilder.UserModuleID)); param.Add(new KeyValuePair <string, object>("@Culture", objWebBuilder.Culture)); param.Add(new KeyValuePair <string, object>("@Settings", objWebBuilder.Settings)); param.Add(new KeyValuePair <string, object>("@PageName", objWebBuilder.PageName)); SQLHandler sagesql = new SQLHandler(); sagesql.ExecuteNonQuery("[dbo].[usp_WebBuilder_UpdateSettings]", param); } catch { throw; } return(webbuilderID); }
public WebBuilderInfo GetPublishedViewDOMByID(WebBuilderInfo obj) { WebBuilderDataProvider objDataProvider = new WebBuilderDataProvider(); return(objDataProvider.GetPublishedViewDOMByID(obj)); }
public int UpdateSettings(WebBuilderInfo obj) { WebBuilderDataProvider objDataProvider = new WebBuilderDataProvider(); return(objDataProvider.UpdateSettings(obj)); }
public int AddUpdate(WebBuilderInfo obj) { WebBuilderDataProvider objDataProvider = new WebBuilderDataProvider(); return(objDataProvider.AddUpdate(obj)); }