public ActionResult AddTitle(DiaryTitle DiaryTitle, int id)
        {
            iDiary iDiary = new iDiary();

            try
            {
                DiaryTitle.AddDiaryTitle();
            }
            catch (Exception ex)
            {
                throw ex;
            }

            return Redirect(Request.UrlReferrer.ToString());
        }
 /// <summary>
 /// Gets DiaryTitle by DiaryTitleID from DiaryTitle Class
 /// </summary>
 /// <param name="ID">DiaryTitleID</param>
 public void GetDiaryTitlebyID(int ID)
 {
     DiaryTitles = new DiaryTitle();
     DiaryTitles.GetDiaryTitlebyID(ID);
 }
 /// <summary>
 /// Gets DiaryTitle by DiaryTitleText from DiaryTitle Class
 /// </summary>
 /// <param name="text">DiaryTitleText</param>
 public void GetDiaryTitlebyTitle(string text)
 {
     DiaryTitles = new DiaryTitle();
     DiaryTitles.GetDiaryTitlebyTitle(text);
 }
 /// <summary>
 /// Gets all the DiaryTitles from DiaryTitle Class
 /// </summary>
 public void GetAllDiaryTitles()
 {
     DiaryTitles = new DiaryTitle();
     DiaryTitles.GetAllDiaryTitles();
 }