Example #1
0
        public ActionResult PropertyDetails(long propertyId)
        {
            var propertyInterest = realEstatePropertyInterestRepository.GetRealEstatePropertyInterests(propertyId, UserId);
            var model            = realEstatePropertyRepository.GetRealEstateProperty(propertyId).Map();

            model.IsInterested = propertyInterest.Any();
            return(View(model));
        }
Example #2
0
        // GET: PropertyInterest
        public ActionResult Index()
        {
            var model = realEstatePropertyInterestRepository.GetRealEstatePropertyInterests(UserId).Map();

            return(View(model));
        }