public int UpdateObj(MailReceive mail)
        {
            int kq = 0;

            try
            {
                string sql = "update MAIL_RECEIVE set Address = N'" + mail.Address + "', Note=N'" + mail.Note + "', IsActive='" + mail.IsActive + "' where Id =" + mail.Id + " and IsDeleted=0";
                kq = dbclass.TruyVan_XuLy(sql);
            }
            catch (Exception ex)
            {
                throw ex;
            }
            return(kq);
        }
        public int AddObj(MailReceive mail)
        {
            int kq = 0;

            try
            {
                string sql = "insert into MAIL_RECEIVE(Address, Note) values(N'" + mail.Address + "', N'" + mail.Note + "' )";
                kq = dbclass.TruyVan_XuLy(sql);
            }
            catch (Exception ex)
            {
                throw ex;
            }
            return(kq);
        }