public ActionResult AddressSelection()
        {
            var model = new AddressSelectionViewModel();

            model.ResidentialAddress.ReturnLatLongDetails = true;

            //var result = new JobSeekerSearchService().SearchJobSeeker();

            return(View(model));
        }
        public ActionResult AddressSelection(AddressSelectionViewModel model)
        {
            model.AddressInfo.AddLineBreak()
            .AddStrongText("Latitude: ").AddText(model.ResidentialAddress.Latitude)
            .AddStrongText("Longitude: ").AddText(model.ResidentialAddress.Longitude)
            .AddStrongText("Locality: ").AddText(model.ResidentialAddress.Locality)
            .AddLineBreak()
            .AddStrongText("State: ").AddText(model.ResidentialAddress.State)
            .AddStrongText("Suburb: ").AddText(model.ResidentialAddress.Locality)
            .AddStrongText("Postcode: ").AddText(model.ResidentialAddress.Postcode);


            return(View(model));
        }
Esempio n. 3
0
        // GET: IMS/Customers/Addresses
        public ActionResult Addresses(int id)
        {
            var customer = _context.Customers
                           .Include(c => c.BillingAddress)
                           .Include(c => c.ShippingAddress)
                           .Include(c => c.SavedAddresses)
                           .SingleOrDefault(c => c.Id == id);

            if (customer == null)
            {
                return(HttpNotFound());
            }

            var viewModel = new AddressSelectionViewModel
            {
                CustomerId      = id,
                BillingAddress  = customer.BillingAddress,
                ShippingAddress = customer.ShippingAddress,
                SavedAddresses  = customer.SavedAddresses
            };

            return(View("AddressSelection", viewModel));
        }