示例#1
0
        public ActionResult Delete(Guid facilityGuid)
        {
            ListingLogic listingLogic = new ListingLogic();
            var listingToDelete = listingLogic.GetListingByFacilityGuid(facilityGuid);
            if (listingToDelete != null)
            {
                return View(listingToDelete);
            }

            return View();
        }
示例#2
0
 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);
 }
示例#3
0
        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");
        }
示例#4
0
        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);
        }