public JsonResult CapNhatDangKyNhanBaoGia(mCustomer_PriceQuotation obj)
        {
            bool       IsSuccess;
            DataAccess m_Dal = new DataAccess();
            clsList_Customer_PriceQuotation clsCustomer_PriceQuotation = new clsList_Customer_PriceQuotation(m_Dal);

            if (obj.LOAI == "INSERT")
            {
                m_Dal.BeginTrans(IsolationLevel.ReadCommitted);
                clsCustomer_PriceQuotation.Customer_PriceQuotation_Name       = obj.Customer_PriceQuotation_Name;
                clsCustomer_PriceQuotation.Customer_PriceQuotation_Phone      = obj.Customer_PriceQuotation_Phone;
                clsCustomer_PriceQuotation.Customer_PriceQuotation_Email      = obj.Customer_PriceQuotation_Email;
                clsCustomer_PriceQuotation.Customer_PriceQuotation_Content    = obj.Customer_PriceQuotation_Content;
                clsCustomer_PriceQuotation.Customer_PriceQuotation_DateFlight = clsCommon.ChangeDate(obj.Customer_PriceQuotation_DateFlight);
                IsSuccess = clsCustomer_PriceQuotation.Insert();
                if (IsSuccess)
                {
                    m_Dal.CommitTrans(true);
                    return(Json("...", JsonRequestBehavior.AllowGet));
                }
                else
                {
                    m_Dal.AbortTrans();
                    return(Json("Cập nhật thất bại!", JsonRequestBehavior.AllowGet));
                }
            }
            else
            {
                int Customer_PriceQuotation_ID = obj.Customer_PriceQuotation_ID;
                m_Dal.BeginTrans(IsolationLevel.ReadCommitted);
                IsSuccess = clsCustomer_PriceQuotation.Delete(Customer_PriceQuotation_ID);
                if (IsSuccess)
                {
                    m_Dal.CommitTrans(true);
                    return(Json("...", JsonRequestBehavior.AllowGet));
                }
                else
                {
                    m_Dal.AbortTrans();
                    return(Json("Cập nhật thất bại!", JsonRequestBehavior.AllowGet));
                }
            }
        }
        public JsonResult CapNhatDangKyBaiViet(mCustomer_EmailRegister obj)
        {
            bool       IsSuccess;
            DataAccess m_Dal = new DataAccess();
            clsList_Customer_EmailRegister clsCustomer_EmailRegister = new clsList_Customer_EmailRegister(m_Dal);

            if (obj.LOAI == "INSERT")
            {
                m_Dal.BeginTrans(IsolationLevel.ReadCommitted);
                clsCustomer_EmailRegister.Customer_EmailRegister_Name    = obj.Customer_EmailRegister_Name;
                clsCustomer_EmailRegister.Customer_EmailRegister_Email   = obj.Customer_EmailRegister_Email;
                clsCustomer_EmailRegister.Customer_EmailRegister_Content = obj.Customer_EmailRegister_Content;
                IsSuccess = clsCustomer_EmailRegister.Insert();
                if (IsSuccess)
                {
                    m_Dal.CommitTrans(true);
                    return(Json("...", JsonRequestBehavior.AllowGet));
                }
                else
                {
                    m_Dal.AbortTrans();
                    return(Json("Cập nhật thất bại!", JsonRequestBehavior.AllowGet));
                }
            }
            else
            {
                int Customer_EmailRegister_ID = obj.Customer_EmailRegister_ID;
                m_Dal.BeginTrans(IsolationLevel.ReadCommitted);
                IsSuccess = clsCustomer_EmailRegister.Delete(Customer_EmailRegister_ID);
                if (IsSuccess)
                {
                    m_Dal.CommitTrans(true);
                    return(Json("...", JsonRequestBehavior.AllowGet));
                }
                else
                {
                    m_Dal.AbortTrans();
                    return(Json("Cập nhật thất bại!", JsonRequestBehavior.AllowGet));
                }
            }
        }