예제 #1
0
        /// <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;
        }
예제 #2
0
 /// <summary>
 /// 
 /// </summary>
 public ContentTemplate()
 {
     this.ta = new ContentTemplatesTableAdapter();
     this.templates = ta.GetContentTemplates();
 }
예제 #3
0
 /// <summary>
 /// 
 /// </summary>
 private void _setDataTable()
 {
     ContentTemplatesTableAdapter ta = new ContentTemplatesTableAdapter();
     table = ta.GetContentTemplates();
 }