public object SaveCategoryBasedTheme(Themes objThemes) { return FacadeManager.EventManager.SaveCategoryBasedTheme(objThemes); }
/// <summary> /// This method will call the event resource save category based theme method /// </summary> /// <param name="objEventTheme"></param> /// <returns></returns> public object SaveCategoryBasedTheme(Themes objThemes) { object identity = null; try { EventResource objEventRes = new EventResource(); identity = objEventRes.SaveCategoryBasedTheme(objThemes); } catch (Exception ex) { throw ex; } return identity; }
public IList<Themes> GetSubCategoryForTheme(string categoryName) { IList<Themes> objThemeList = new List<Themes>(); Themes objTheme; if (!string.IsNullOrEmpty(categoryName)) { object[] param = { categoryName }; DataSet dsThemes = GetDataSet("usp_GetSubCategoryForTributeType", param); if (dsThemes.Tables.Count > 0) { if (dsThemes.Tables[0].Rows.Count > 0) { foreach (DataRow dr in dsThemes.Tables[0].Rows) { objTheme = new Themes(); if (!string.IsNullOrEmpty(dr["TributeType"].ToString())) objTheme.Tributetype = dr["TributeType"].ToString(); if (!string.IsNullOrEmpty(dr["SubCategory"].ToString())) objTheme.SubCategory = dr["SubCategory"].ToString(); objThemeList.Add(objTheme); } } } } return objThemeList; }