/// <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); }
/// <summary> /// /// </summary> public List <Contact> GetContacts(string base64File) { return(CsvParser.ParseCsv <Contact>(base64File)); }