public void UpdateEstateProperty(EstateProperties estate)
 {
     try
     {
         using (EstatePropertiesRepository epRepository = new EstatePropertiesRepository())
         {
             epRepository.Update(estate);
         }
     }
     catch (Exception)
     {
         throw;
     }
 }
        private List <EstateProperties> GetAllEstateProperties()
        {
            List <EstateProperties> estateProperties = null;

            try
            {
                using (EstatePropertiesRepository epRepository = new EstatePropertiesRepository())
                {
                    estateProperties = epRepository.GetAll() as List <EstateProperties>;
                }
            }
            catch (Exception)
            {
                throw;
            }
            return(estateProperties);
        }