Exemplo n.º 1
0
    public bool CheckZips(string zipId)
    {
        ZipCodesBL objZipCodesBL = new ZipCodesBL();

        List<ZipcodeDistancesInfo> objZipCode = (List<CarsInfo.ZipcodeDistancesInfo>)objZipCodesBL.GetZips(zipId);

        if (objZipCode.Count > 0)
        {
            return true;
        }
        else
        {
            return false;
        }
    }
Exemplo n.º 2
0
    public bool CheckZips(string zipId, string AuthenticationID, string CustomerID)
    {
        ZipCodesBL objZipCodesBL = new ZipCodesBL();

        List<ZipcodeDistancesInfo> objZipCode = new List<ZipcodeDistancesInfo>();
        MobileBL objMobileBL = new MobileBL();
        if (CustomerID != "")
        {
            DataSet dsSaveCustInfo = objMobileBL.SaveMobileCustomerInfo("CheckZips", CustomerID, AuthenticationID,zipId);
        }
        if (AuthenticationID == ConfigurationManager.AppSettings["AppleID"].ToString())
        {
            objZipCode = (List<ZipcodeDistancesInfo>)objZipCodesBL.GetZips(zipId);

        }

        if (objZipCode.Count > 0)
        {
            return true;
        }
        else
        {
            return false;
        }
    }