Ejemplo n.º 1
0
        /// <summary>
        ///
        /// </summary>
        public ReportResult GetReportResult(string base64FileListings)
        {
            var returnResult = new ReportResult();

            var listings = CsvParser.ParseCsv <Listing>(base64FileListings);

            CalculationEngine.ListingCalculator calculator = new ListingCalculator();
            returnResult.averagePriceResult            = calculator.GetAveragePricePerSellerType(listings);
            returnResult.percesntageDistributionResult = calculator.GetPercentageDistributionResult(listings);

            return(returnResult);
        }
Ejemplo n.º 2
0
 /// <summary>
 ///
 /// </summary>
 public List <Contact> GetContacts(string base64File)
 {
     return(CsvParser.ParseCsv <Contact>(base64File));
 }