Esempio n. 1
0
 public bool SaveReligion(MST_RELIGION mST_RELIGION)
 {
     try
     {
         unitOfWork.ReligionRepository.Create(mST_RELIGION);
         unitOfWork.Save();
         return(true);
     }
     catch (Exception ex)
     { return(false); }
 }
Esempio n. 2
0
        /// <summary>
        /// Save, update and Bind data for Religion
        /// </summary>
        protected void btnReligion_Click(object sender, EventArgs e)
        {
            MST_RELIGION religion = new MST_RELIGION();

            try
            {
                religion.CreatedDate  = DateTime.Now;
                religion.ReligionName = txtReligion.Text.Trim();
                religionModel.SaveReligion(religion);
                txtReligion.Text = "";
                GetAllReligion();
            }
            catch (Exception ex)
            {
            }
        }