public void PopulateFrom(Content c) { this.template_category_cd_id.Value = GSC(SystemCodeType.TEMPLATE_CATEGORY, c.Category); this.template_type_cd_id.Value = GSC(SystemCodeType.TEMPLATE_TYPE, c.ContentType); this.description.Value = c.Description; this.end_date.Value = c.DisableDate; this.name.Value = c.Name; this.start_date.Value = c.EnableDate; this.template_text.Value = c.Text; }
public void PopulateFrom(Content c) { this.content_type_cd_id.Value = GSC(SystemCodeType.CONTENT_TYPE, c.ContentType); this.section_name.Value = c.Section; this.start_date.Value = c.EnableDate; this.end_date.Value = c.DisableDate; }