public SectionController() { LayoutControllerType = typeof( Section.LayoutController ); postService = new ContentPostService(); sectionService = new ContentSectionService(); }
public PostController() { LayoutControllerType = typeof(Section.LayoutController); postService = new ContentPostService(); sectionService = new ContentSectionService(); }
public static void updateParamValues( ContentSection section, IContentSectionService sectionService, MvcContext ctx ) { IList parms = ServiceContext.Get( section.ServiceId ).GetParams(); int count = parms.Count; StringBuilder builder = new StringBuilder(); for (int i = 0; i < count; i++) { ParamControl control = parms[i] as ParamControl; builder.Append( "param" ); builder.Append( i ); builder.Append( "=" ); String strVal = ctx.Post( "param" + i ); object val = control.ChangeType( strVal ); builder.Append( val ); if (i < (count - 1)) { builder.Append( ";" ); } } section.ServiceParams = builder.ToString(); sectionService.Update( section ); }
public static void updateParamValues(ContentSection section, IContentSectionService sectionService, MvcContext ctx) { IList parms = ServiceContext.Get(section.ServiceId).GetParams(); int count = parms.Count; StringBuilder builder = new StringBuilder(); for (int i = 0; i < count; i++) { ParamControl control = parms[i] as ParamControl; builder.Append("param"); builder.Append(i); builder.Append("="); String strVal = ctx.Post("param" + i); object val = control.ChangeType(strVal); builder.Append(val); if (i < (count - 1)) { builder.Append(";"); } } section.ServiceParams = builder.ToString(); sectionService.Update(section); }
public ListTwoController() { postService = new ContentPostService(); sectionService = new ContentSectionService(); }
public PollController() { postService = new ContentPostService(); pollService = new ContentPollService(); sectionService = new ContentSectionService(); }
public SlideController() { postService = new ContentPostService(); sectionService = new ContentSectionService(); }
public RowController() { rowService = new RowService(); sectionService = new ContentSectionService(); }
public ListMaker( ) { postService = new ContentPostService(); sectionService = new ContentSectionService(); }
public ListImgController() { sectionService = new ContentSectionService(); postService = new ContentPostService(); imgService = new ContentImgService(); }
public VideoShowController() { postService = new ContentPostService(); sectionService = new ContentSectionService(); }
public NormalController() { postService = new ContentPostService(); imgService = new ContentImgService(); sectionService = new ContentSectionService(); }
public SummaryController() { postService = new ContentPostService(); sectionService = new ContentSectionService(); }