예제 #1
0
        public OCA.Common.DataSets.BaseInformation.MailSecurity GetMailSecuritys()
        {
            sda = new SqlDataAdapter(" select * from Tbl_MailSecurity", conn);

            try
            {
                dsmSecurity.Clear();

                if (conn.State == ConnectionState.Closed)
                {
                    conn.Open();
                }

                sda.Fill(dsmSecurity.Tbl_MailSecurity);

                return(dsmSecurity);
            }
            catch
            {
                throw new Exception("خطا در ارتباط با بانک اطلاعاتی!");
            }
            finally
            {
                conn.Close();
            }
        }
예제 #2
0
 public OCA.Common.DataSets.BaseInformation.MailSecurity GetMailSecuritys()
 {
     try
     {
         dsmSecurity.Clear();
         dsmSecurity = mSecurityclass.GetMailSecuritys();
         return(dsmSecurity);
     }
     catch (Exception ex)
     {
         throw new Exception(ex.Message);
     }
 }