/// <summary>
        /// 
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        public DAL.ContentTemplatesRow get(string name)
        {
            this.templates = this.ta.GetContentTemplateByName(name);
            if (this.templates.Count > 0)
            {
                DAL.ContentTemplatesRow item = this.templates[0];
                return item;
            }

            DAL.ContentTemplatesRow row = null;
            return row;
        }
 /// <summary>
 /// 
 /// </summary>
 public ContentTemplate()
 {
     this.ta = new ContentTemplatesTableAdapter();
     this.templates = ta.GetContentTemplates();
 }
Example #3
0
 /// <summary>
 /// 
 /// </summary>
 private void _setDataTable()
 {
     ContentTemplatesTableAdapter ta = new ContentTemplatesTableAdapter();
     table = ta.GetContentTemplates();
 }