///<summary> /// Load the Description in the CultureCode language from DB. You must set CourseId and CultureCode to get the Description ///</summary> public void LoadDescription() { if (TheCourse == null || TheCourse.CourseId == 0 || CultureCode == null) throw new Exception("Cannot load Description. Need CourseId and CultureCode"); BaseRepository rep = new BaseRepository(); TheDescription = rep.GetCurrentVersionText(CultureCode, TheCourse.CourseId, ETextItemType.CourseDescription); }
///<summary> /// Load the title in the CultureCode language from DB. You must set PluggId and CultureCode to get the Title ///</summary> public void LoadTitle() { if (ThePlugg == null || ThePlugg.PluggId == 0) { throw new Exception("Cannot load title. Need PluggId"); } BaseRepository rep = new BaseRepository(); TheTitle = rep.GetCurrentVersionText(CultureCode, ThePlugg.PluggId, ETextItemType.PluggTitle); }
///<summary> /// Load the Description in the CultureCode language from DB. You must set PluggId and CultureCode to get the Description ///</summary> public void LoadDescription() { if (ThePlugg == null || ThePlugg.PluggId == 0 || CultureCode == null) { throw new Exception("Cannot load Description. Need PluggId and CultureCode"); } BaseRepository rep = new BaseRepository(); TheTitle = rep.GetCurrentVersionText(CultureCode, ThePlugg.PluggId, ETextItemType.PluggDescription); }
///<summary> /// Load the title in the CultureCode language from DB. You must set PluggId and CultureCode to get the Title ///</summary> public void LoadTitle() { if (ThePlugg == null || ThePlugg.PluggId == 0) throw new Exception("Cannot load title. Need PluggId"); BaseRepository rep = new BaseRepository(); TheTitle = rep.GetCurrentVersionText(CultureCode, ThePlugg.PluggId, ETextItemType.PluggTitle); }
///<summary> /// Load the Description in the CultureCode language from DB. You must set PluggId and CultureCode to get the Description ///</summary> public void LoadDescription() { if (ThePlugg == null || ThePlugg.PluggId == 0 || CultureCode == null) throw new Exception("Cannot load Description. Need PluggId and CultureCode"); BaseRepository rep = new BaseRepository(); TheTitle = rep.GetCurrentVersionText(CultureCode, ThePlugg.PluggId, ETextItemType.PluggDescription); }
///<summary> /// Load the title in the CultureCode language from DB. You must set CourseId and CultureCode to get the Title ///</summary> public void LoadRichRichText() { if (TheCourse == null || TheCourse.CourseId == 0) throw new Exception("Cannot load title. Need CourseId"); BaseRepository rep = new BaseRepository(); TheRichRichText = rep.GetCurrentVersionText(CultureCode, TheCourse.CourseId, ETextItemType.CourseRichRichText); }