public ActionResult LandGalleryDisplay(int id) { GalleryDetails galleryDetails = new GalleryDetails(); GalleryBusinessLayer galleryBusinessLayer = new GalleryBusinessLayer(); galleryDetails.DisplayLandGallery = galleryBusinessLayer.LandGalleries(id); galleryDetails.DisplayLandDetails = galleryBusinessLayer.LandGalleryDetails(id); return View(galleryDetails); }
public ActionResult GetView(string parish, string propertyType) { Object model = null; if (propertyType == "House") { GalleryBusinessLayer galleryHouseBusinessLayer = new GalleryBusinessLayer(); IEnumerable<House> house = galleryHouseBusinessLayer.HouseProperties(parish, propertyType); model = house; } if (propertyType == "Land") { GalleryBusinessLayer galleryLandBusinessLayer = new GalleryBusinessLayer(); IEnumerable<Land> land = galleryLandBusinessLayer.LandProperties(parish, propertyType); model = land; } return PartialView(propertyType, model); }