public IHttpActionResult Get(int id)
        {
            RealEstatePropertyService realEstatePropertyService = CreateRealEstatePropertyService();
            var realEstateProperty = realEstatePropertyService.GetRealEstatePropertyById(id);

            return(Ok(realEstateProperty));
        }
        private RealEstatePropertyService CreateRealEstatePropertyService()
        {
            var userId = Guid.Parse(User.Identity.GetUserId());
            var realEstatePropertyService = new RealEstatePropertyService(userId);

            return(realEstatePropertyService);
        }
        public IHttpActionResult GetAllRealEstateProperty()
        {
            RealEstatePropertyService realEstatePropertyService = CreateRealEstatePropertyService();
            var realEstateProperty = realEstatePropertyService.GetRealEstateProperty();

            return(Ok(realEstateProperty));
        }