public ActionResult <double> GetAverageBedrooms(string date1, string date2)
        {
            var transactions = _repo.GetEstateTransactions();
            var result       = EstateTransactionServices.GetAverageBedroomsSoldInBetweenDates(DateTime.Parse(date1), DateTime.Parse(date2), transactions);

            return(Ok(result));
        }
        public ActionResult <Dictionary <string, decimal> > GetAveragePrices()
        {
            var transactions = _repo.GetEstateTransactions();

            return(EstateTransactionServices.GetAveragePricePerSquareFeetByCity(transactions).ToDictionary(x => x.Key, x => x.Value));
        }
        public ActionResult <decimal> GetTotalTransactionAmount(string zip)
        {
            var transactions = _repo.GetEstateTransactions();

            return(EstateTransactionServices.GetTotalTransactionAmountFromAreaByZip(zip, transactions));
        }
        public ActionResult <double> GetAreal(string city)
        {
            var transactions = _repo.GetEstateTransactions();

            return(EstateTransactionServices.GetAverageResidentialArealInCity(city, transactions));
        }