Beispiel #1
1
        public static Owner MapToOwner(ZbaBotService.Owner zbaOwner)
        {
            var owner = new Owner
                {
                    MailingAddress1 = zbaOwner.MailingAddress1,
                    MailingAddress2 = zbaOwner.MailingAddress2,
                    MailingCity = zbaOwner.MailingCity,
                    MailingState = zbaOwner.MailingState,
                    MailingZipCode = zbaOwner.MailingZip,
                    Name = zbaOwner.Name
                };

            return owner;
        }
        public static TaxRecord MapToTaxRecord(ZbaBotService.TaxRecord zbaTaxRecord)
        {
            var taxRecord = new TaxRecord
                {
                    RevenueDown = zbaTaxRecord.RevenueDown,
                    TaxInfo = new List<TaxInfo>()
                };

            foreach (var taxInfo in zbaTaxRecord.TaxInfoYears.Select(zbaTaxYear => new TaxInfo
                {
                    Interest = zbaTaxYear.Interest.ToString(CultureInfo.InvariantCulture),
                    Lien = zbaTaxYear.Lien,
                    Other = zbaTaxYear.Other.ToString(CultureInfo.InvariantCulture),
                    Penalty = zbaTaxYear.Penalty.ToString(CultureInfo.InvariantCulture),
                    Principal = zbaTaxYear.Principal.ToString(CultureInfo.InvariantCulture),
                    Solicitor = zbaTaxYear.Solicitor,
                    Status = zbaTaxYear.Status,
                    Total = zbaTaxYear.Total.ToString(CultureInfo.InvariantCulture),
                    Year = zbaTaxYear.Year
                }))
            {
                taxRecord.TaxInfo.Add(taxInfo);
            }
            return taxRecord;
        }
Beispiel #3
0
        public static Details MapToDetails(ZbaBotService.Details opaDetails)
        {
            var details = new Details
                {
                    AssessedImprovementExempt = opaDetails.AssessedImprovementExempt,
                    AssessedImprovementTaxable = opaDetails.AssessedImprovementTaxable,
                    AssessedLandExempt = opaDetails.AssessedLandExempt,
                    AssessedLandTaxable = opaDetails.AssessedLandTaxable,
                    BeginPoint = opaDetails.BeginPoint,
                    Condition = opaDetails.Condition,
                    CouncilDistrict = opaDetails.CouncilDistrict,
                    Description = opaDetails.Description,
                    ImprovementArea = opaDetails.ImprovementArea,
                    LandArea = opaDetails.LandArea,
                    MarketValue = opaDetails.MarketValue,
                    RealEstateTax = opaDetails.RealEstateTax,
                    SaleDate = opaDetails.SaleDate,
                    SalePrice = opaDetails.SalePrice,
                    TotalAssessment = opaDetails.TotalAssessment,
                    Zoning = opaDetails.Zoning,
                    ZoningDescription = opaDetails.ZoningDescription
                };

            return details;
        }
        public static ValuationRecord MapToValuationRecord(ZbaBotService.Valuation zbaValuationRecord)
        {
            var valuationRecord = new ValuationRecord
                {
                    ValuationInfo = new List<ValuationInfo>()
                };

            foreach (var valuation in zbaValuationRecord.ValuationYears.Select(zbaValuation => new ValuationInfo
                {
                    AssessedImprovementExempt = zbaValuation.AssessedImprovementExempt,
                    AssessedImprovementTaxable = zbaValuation.AssessedImprovementTaxable,
                    AssessedLandExempt = zbaValuation.AssessedLandExempt,
                    AssessedLandTaxable = zbaValuation.AssessedLandTaxable,
                    GrossTax = zbaValuation.GrossTax,
                    MarketValue = zbaValuation.MarketValue,
                    TotalAssessment = zbaValuation.TotalAssessment,
                    Year = zbaValuation.Year
                }))
            {
                valuationRecord.ValuationInfo.Add(valuation);
            }

            return valuationRecord;
        }