Exemple #1
0
        public static AutomatedCMAResults GetAutomatedRehabCMA(string subjectBBL, AutomatedCMAFilters fl)
        {
            AutomatedCMAResults cmaResult = new AutomatedCMAResults();

            cmaResult.results = DAL.CMA.GetComparables(fl.algorithmType, subjectBBL, fl.basicFilter.maxRecords, fl.basicFilter.sameNeighborhood, fl.basicFilter.sameSchoolDistrict,
                                                       fl.basicFilter.sameZip, fl.basicFilter.sameBlock, fl.basicFilter.sameStreet, fl.basicFilter.monthOffset, fl.basicFilter.minSalePrice,
                                                       fl.basicFilter.maxSalePrice, fl.basicFilter.classMatchType, fl.basicFilter.isNotIntraFamily, fl.basicFilter.isSelleraCompany,
                                                       fl.basicFilter.isBuyeraCompany, fl.basicFilter.minSimilarity);

            cmaResult.price = cmaResult.price = getSuggestedPropertyPrices((int)CMAType.Rehab, subjectBBL, cmaResult.results);

            return(cmaResult);
        }
Exemple #2
0
        public static AutomatedCMAResults GetAutomatedCMA(string algorithmType, string subjectBBL, int?maxRecords, bool?sameNeighborhood, bool?sameSchoolDistrict,
                                                          bool?sameZip, bool?sameBlock, bool?sameStreet, int?monthOffset, double?minSalePrice, double?maxSalePrice,
                                                          int?classMatchType, bool?isNotIntraFamily, bool?isSelleraCompany, bool?isBuyeraCompany, int?minSimilarity)
        {
            AutomatedCMAResults cmaResult = new AutomatedCMAResults();

            cmaResult.results = DAL.CMA.GetComparables(algorithmType, subjectBBL, maxRecords, sameNeighborhood, sameSchoolDistrict, sameZip, sameBlock, sameStreet,
                                                       monthOffset, minSalePrice, maxSalePrice, classMatchType, isNotIntraFamily, isSelleraCompany, isBuyeraCompany, minSimilarity);

            cmaResult.price = getSuggestedPropertyPrices((int)CMAType.Regular, subjectBBL, cmaResult.results);

            return(cmaResult);
        }