public ActionResult Delete(Guid facilityGuid) { ListingLogic listingLogic = new ListingLogic(); var listingToDelete = listingLogic.GetListingByFacilityGuid(facilityGuid); if (listingToDelete != null) { return View(listingToDelete); } return View(); }
public ActionResult ListingDetails(Guid facilityGuid, SeoSearchFilterViewModel seofilter) { var filter = this.RestoreFilter(seofilter); ListingLogic llogic = new ListingLogic(); ListingViewModelEdit listingnew = llogic.GetListingByFacilityGuid(facilityGuid).ToEdit(); var csz = this.CityStateZipAll.FirstOrDefault(c => c.CityStateZipGuid == listingnew.CityStateZipGuid); this.AddTypesOfCareToListing(listingnew); this.AddFacilityPhotoToListing(listingnew, false); var details = listingnew.ToListingDetails(csz, filter); return View(details); }
public ActionResult See(Guid facilityGuid) { ListingLogic listingLogic = new ListingLogic(); ListingViewModel listing = listingLogic.GetListingByFacilityGuid(facilityGuid); if (null != listing) { ListingViewModelEdit listingnew = listing.ToEdit(); this.AddListingTypesToListing(listingnew); this.AddTypesOfCareToListing(listingnew); this.AddFacilityPhotoToListing(listingnew, false); return View(listingnew); } return RedirectToAction("Create", "Listings"); }
public ActionResult Edit(Guid facilityGuid) { // Get account object from db ListingLogic listingLogic = new ListingLogic(); ListingViewModel listing = listingLogic.GetListingByFacilityGuid(facilityGuid); ListingViewModelEdit listingnew = listing.ToEdit(); listingnew.SaveButtonText = "Save"; listingnew.ActionName = "Edit"; this.AddListingTypesToListing(listingnew); this.AddTypesOfCareToListing(listingnew); this.AddFacilityPhotoToListing(listingnew, true); return View(listingnew); }