private void AddHouseList(HouseInformation houseInformation)
        {
            var houseInfosElementJson = HouseList.Add();

            houseInfosElementJson.Date    = houseInformation.Date.ToShortDateString();
            houseInfosElementJson.Address = houseInformation.Number + ", " + houseInformation.Street + ", " +
                                            houseInformation.City + houseInformation.Country;
            houseInfosElementJson.Price      = houseInformation.Price;
            houseInfosElementJson.Commission = houseInformation.Commission;
        }
        private void AssignHomeValueToRepo()
        {
            var houseInformation = new HouseInformation();

            houseInformation.Date       = DateTime.Parse(SaleDate);
            houseInformation.City       = HouseCity;
            houseInformation.Country    = HouseCountry;
            houseInformation.Street     = Street;
            houseInformation.Price      = HousePrice;
            houseInformation.Commission = HouseCommission;
            houseInformation.ZipCode    = (int)ZipCode;
            houseInformation.Number     = (int)HouseNumber;
            var realEstateOffice = Data as RealEstateOffice;

            houseInformation.RealEstateOffice = realEstateOffice;

            AddHouseList(houseInformation);

            Transaction.Commit();
        }