public PropertyViewModel() { Location = new AddressModel() { Address = "301 15th Street, Hood River", Location = GeographyHelpers.CreatePoint(45.7120903, -121.5272902) }; }
public ActionResult GoogleMaps(AddressModel model) { if (ModelState.IsValid) { TempData.AddSuccessMessage("Location was successfully submitted"); } return View(model); }
public BeachViewModel() { // some sample change Location = new AddressModel() { Address = "301 15th Street, Hood River", Location = GeographyHelpers.CreatePoint(45.7120903, -121.5272902) }; }
public ActionResult GoogleMaps() { var model = new AddressModel { Address = "301 15th Street, Hood River", Location = GeographyHelpers.CreatePoint(45.7120903, -121.5272902) }; return View(model); }