示例#1
0
        public DomainDNS getDNSDomainProduct(int custDomainProductId)
        {
            SqlCommand dinsert = new SqlCommand("usp_GetDomainDNSMangement");

            dinsert.Parameters.AddWithValue("@CustDomainProductId", SqlDbType.Int).Value = custDomainProductId;
            DataSet   DsList = objcon.GetDsByCommand(dinsert);
            DomainDNS List   = new DomainDNS();

            if (DsList.Tables[0].Rows.Count > 0)
            {
                List.CustId             = Convert.ToString(DsList.Tables[0].Rows[0]["CustId"]);
                List.CustName           = Convert.ToString(DsList.Tables[0].Rows[0]["CustName"]);
                List.EmailId            = (DsList.Tables[0].Rows[0]["Email"].ToString());
                List.MobileNo           = (DsList.Tables[0].Rows[0]["MobileNo"].ToString());
                List.Address            = DsList.Tables[0].Rows[0]["Address"].ToString();
                List.Country            = DsList.Tables[0].Rows[0]["Country"].ToString();
                List.State              = DsList.Tables[0].Rows[0]["StateId"].ToString();
                List.City               = DsList.Tables[0].Rows[0]["City"].ToString();
                List.PostalCode         = DsList.Tables[0].Rows[0]["PostedCode"].ToString();
                List.ProductCode        = DsList.Tables[0].Rows[0]["ProductCode"].ToString();
                List.DomainEPPCOde      = DsList.Tables[0].Rows[0]["DomainERPCode"].ToString();
                List.DomainProviderCode = DsList.Tables[0].Rows[0]["DomainProviderCode"].ToString();
                List.SACCode            = DsList.Tables[0].Rows[0]["SACCode"].ToString();
                List.DomainName         = DsList.Tables[0].Rows[0]["ProductName"].ToString();
                List.creatationdate     = Convert.ToString(DsList.Tables[0].Rows[0]["DomainCreationDate"]);
                List.Expirationdate     = Convert.ToString(DsList.Tables[0].Rows[0]["DomainExpirationDate"]);
                List.Deletiondate       = Convert.ToString(DsList.Tables[0].Rows[0]["DomainDeletionDate"]);
                List.Subscription       = Convert.ToString(DsList.Tables[0].Rows[0]["Description"]);
                List.Registrationprise  = Convert.ToString(DsList.Tables[0].Rows[0]["RegistrartionPrice"]);
                List.Renewalprise       = Convert.ToString(DsList.Tables[0].Rows[0]["RenewalPrice"]);
                List.Transferprise      = Convert.ToString(DsList.Tables[0].Rows[0]["TransferPrice"]);
                List.Restorationprise   = Convert.ToString(DsList.Tables[0].Rows[0]["DomainregistrationPrice"]);
            }
            return(List);
        }
示例#2
0
        public ActionResult SetDNS(DomainDNS DNS, FormCollection fc)
        {
            DNS.TTL = "Auto";
            bool res = objPartnerBAL.setDNSMangDtl(DNS);

            // return View();
            return(RedirectToAction("CPCDomainProduct", "CPC"));
        }
示例#3
0
        public bool SetDNSMangDtl(DomainDNS dNS)
        {
            SqlCommand dinsert1 = new SqlCommand("usp_SetDNSManagment");

            dinsert1.Parameters.AddWithValue("@CustDomainProductId", SqlDbType.Int).Value = dNS.CustDomainProductId;

            dinsert1.Parameters.AddWithValue("@DNSTypeId", SqlDbType.Int).Value = Convert.ToInt32(dNS.DNSTypeId);
            if (!string.IsNullOrWhiteSpace(dNS.Name))
            {
                dinsert1.Parameters.AddWithValue("@Name", SqlDbType.NVarChar).Value = dNS.Name;
            }
            if (!string.IsNullOrWhiteSpace(dNS.Value))
            {
                dinsert1.Parameters.AddWithValue("@Value", SqlDbType.NVarChar).Value = dNS.Value;
            }
            if (!string.IsNullOrWhiteSpace(dNS.TTL))
            {
                dinsert1.Parameters.AddWithValue("@TTL", SqlDbType.NVarChar).Value = dNS.TTL;
            }
            if (!string.IsNullOrWhiteSpace(dNS.Priority))
            {
                dinsert1.Parameters.AddWithValue("@Priority", SqlDbType.NVarChar).Value = dNS.Priority;
            }
            if (!string.IsNullOrWhiteSpace(dNS.Protocol))
            {
                dinsert1.Parameters.AddWithValue("@Protocol", SqlDbType.NVarChar).Value = dNS.Protocol;
            }
            if (!string.IsNullOrWhiteSpace(dNS.Weight))
            {
                dinsert1.Parameters.AddWithValue("@Weight", SqlDbType.NVarChar).Value = dNS.Weight;
            }
            if (!string.IsNullOrWhiteSpace(dNS.Port))
            {
                dinsert1.Parameters.AddWithValue("@Port", SqlDbType.NVarChar).Value = dNS.Port;
            }
            if (!string.IsNullOrWhiteSpace(dNS.Target))
            {
                dinsert1.Parameters.AddWithValue("@Target", SqlDbType.NVarChar).Value = dNS.Target;
            }
            bool Result1 = objcon.InsrtUpdtDlt(dinsert1);

            return(Result1);
        }
示例#4
0
        public List <DomainDNS> _partialgetDomainDNS(int custDomainProductId)
        {
            SqlCommand dinsert = new SqlCommand("usp_GetDNSManagment");

            dinsert.Parameters.AddWithValue("@CustDomainProductId", SqlDbType.Int).Value = custDomainProductId;
            DataSet          dtList = objcon.GetDsByCommand(dinsert);
            List <DomainDNS> list1  = new List <DomainDNS>();

            foreach (DataRow dr in dtList.Tables[0].Rows)
            {
                DomainDNS pd = new DomainDNS();
                pd.Name    = (dr["Name"].ToString());
                pd.DNSType = dr["DNSType"].ToString();
                pd.Value   = dr["Value"].ToString();
                pd.TTL     = dr["TTL"].ToString();
                list1.Add(pd);
            }
            return(list1);
        }
示例#5
0
 public bool setDNSMangDtl(DomainDNS dNS)
 {
     return(dsh.SetDNSMangDtl(dNS));
 }