コード例 #1
0
 public List<Templates> GetThemesFolder(Templates objTributeType, string applicationType)
 {
     TemplateResource objTheme = new TemplateResource();
     return objTheme.GetThemesTemplates(objTributeType.TributeType, applicationType);
 }
コード例 #2
0
 /// <summary>
 /// Method to update the tribute theme
 /// </summary>
 /// <param name="objTheme">Tribute entity containing Tribute Id, Theme Id</param>
 public void UpdateTributeTheme(Tributes objTheme)
 {
     TemplateResource objTemplate = new TemplateResource();
     object[] param = { objTheme };
     objTemplate.UpdateTributeTheme(param);
 }
コード例 #3
0
 /// <summary>
 /// Method to get the theme for the tribute
 /// </summary>
 /// <param name="objTheme">Template Object</param>
 /// <returns></returns>
 public Templates GetThemeForTribute(Tributes objTheme)
 {
     TemplateResource objTemplate = new TemplateResource();
     object[] param = { objTheme };
     return objTemplate.GetThemeForTribute(param);
 }
コード例 #4
0
 /// <summary>
 /// Method to get the list of themes for a tribute
 /// </summary>
 /// <param name="objTributeType">Type of Tribute</param>
 public List<Templates> GetThemes(Templates objTributeType)
 {
     TemplateResource objTheme = new TemplateResource();
     return objTheme.GetTemplates(objTributeType.TributeType);
 }
コード例 #5
0
 /// <summary>
 /// 
 /// </summary>
 /// <param name="objTheme"></param>
 /// <returns></returns>
 public Templates GetExistingFolderName(Tributes objTheme)
 {
     TemplateResource objTemplate = new TemplateResource();
     object[] param = { objTheme };
     return objTemplate.GetExistingFolderName(param);
 }
コード例 #6
0
 // by Ud: for saving and updating theme for business type User
 public void SaveDefaultTheme(int userId,string tributeType ,int themeId)
 {
     TemplateResource objTemplate = new TemplateResource();
     using (TransactionScope trans = new TransactionScope())
     {
         objTemplate.SaveDefaultTheme(userId, tributeType, themeId);
         //Transaction Commited
         trans.Complete();
     }
 }
コード例 #7
0
 public List<Themes> GetThemesForCategory(string strTheme, string categoryName,string applicationType)
 {
     TemplateResource objTemplate = new TemplateResource();
     return objTemplate.GetThemesForCategory(strTheme, categoryName, applicationType);
 }
コード例 #8
0
 public List<Themes> GetThemes(string strTheme)
 {
     TemplateResource objTemplate = new TemplateResource();
     return objTemplate.GetThemes(strTheme);
 }
コード例 #9
0
 // by Ud: to getting Default Theme for Business type user
 public int GetDefaultTheme(int UserId, string strTributeType)
 {
     TemplateResource objTemplate = new TemplateResource();
     return objTemplate.GetDefaultTheme(UserId, strTributeType);
 }