コード例 #1
0
        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());
        }
コード例 #2
0
 /// <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);
 }
コード例 #3
0
 /// <summary>
 /// Gets the DefaultText used where no Text is found
 /// </summary>
 public void GetDefaultDiaryText()
 {
     DiaryTexts = new DiaryText();
     DiaryTexts.GetDefaultDiaryText();
 }
コード例 #4
0
 /// <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);
 }
コード例 #5
0
 /// <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);
 }