Exemple #1
0
        void SaveMessageDB_HT_DacTrungNH(OpenPop.Mime.Message message)
        {
            try
            {
                string mes = message.FindFirstPlainTextVersion().GetBodyAsText();

                XDocument            xDoc = XDocument.Parse(mes);
                HT_DacTrungNguoiHien dt   = new HT_DacTrungNguoiHien(xDoc);
                if (dbht.GetDacTrungByID(dt.Id) == null)
                {
                    dbht.AddDacTrung(dt);
                }
                else
                {
                    dbht.EditDacTrung(dt.Id, dt);
                }

                SaveFile(message);
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }