public ActionResult AddText(DiaryText DiaryText, int id) { iDiary iDiary = new iDiary(); try { DiaryText.LeadTypeID = iDiary.GetLeadTypeIDbyLeadID(DiaryText.LeadTypeID); DiaryText.AddDiaryText(); } catch (Exception ex) { throw ex; } return Redirect(Request.UrlReferrer.ToString()); }
/// <summary> /// Gets DiaryText DiaryText Class /// </summary> /// <param name="text">Text to find</param> /// <param name="leadTypeID">LeadTypeID</param> /// <param name="titleID">DiaryTitleID</param> public void GetDiaryTextbyText(string text, int leadTypeID, int titleID) { DiaryTexts = new DiaryText(); DiaryTexts.GetDiaryTextbyText(text, leadTypeID, titleID); }
/// <summary> /// Gets the DefaultText used where no Text is found /// </summary> public void GetDefaultDiaryText() { DiaryTexts = new DiaryText(); DiaryTexts.GetDefaultDiaryText(); }
/// <summary> /// Gets DiaryText by DiaryTitleID from DiaryText Class /// </summary> /// <param name="ID">DiaryTitleID</param> public void GetDiaryTextbyID(int ID) { DiaryTexts = new DiaryText(); DiaryTexts.GetDiaryTextbyID(ID); }
/// <summary> /// Get All DiaryTexts from DiaryText Classs /// </summary> /// <param name="titleID">DiaryTitleID</param> /// <param name="leadTypeID">LeadTypeID</param> public void GetAllDiaryTexts(int titleID, int leadTypeID) { DiaryTexts = new DiaryText(); DiaryTexts.GetDiaryTexts(titleID, leadTypeID); }