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 async Task<ActionResult> GetEmailForm(GalleryDetails model) { if (ModelState.IsValid) { EmailServices sendMail = new EmailServices(); await sendMail.SendEmail(model.DisplayEmailForm); return RedirectToAction("Portland", "PropertyLocation"); } else { return View(model); } }