public ActionResult PropertyDetails(long propertyId) { var propertyInterest = realEstatePropertyInterestRepository.GetRealEstatePropertyInterests(propertyId, UserId); var model = realEstatePropertyRepository.GetRealEstateProperty(propertyId).Map(); model.IsInterested = propertyInterest.Any(); return(View(model)); }
// GET: PropertyInterest public ActionResult Index() { var model = realEstatePropertyInterestRepository.GetRealEstatePropertyInterests(UserId).Map(); return(View(model)); }