public ActionResult Delete(RetrieveViewModel rvm)
        {
            CreateViewModel cvm = new CreateViewModel();

            if (ModelState.IsValid)  // required fields entered?
            {

                cvm = _adapter.GetCreateViewModel(rvm);

                if (cvm == null) // not found
                    return View();
                else
                    return View("DeleteBridge", cvm);
            }

            return View();
        }
        public ActionResult UpdateByCity(double lat, double lon)
        {
            RetrieveViewModel rvm = new RetrieveViewModel();
            rvm.Latitude = lat;
            rvm.Longitude = lon;

            if (ModelState.IsValid)  // required fields entered?
            {
                return View("Update", _adapter.GetCreateViewModel(rvm));
            }

            return View();
        }
        public ActionResult SearchByCoords(RetrieveViewModel rvm)
        {
            List<CDLRouteHelper.Models.CreateViewModel> lcvm = new List<CDLRouteHelper.Models.CreateViewModel>();

            if (ModelState.IsValid)  // required fields entered?
            {
                rvm.Distance = 50;  //start at within 50 miles
                ViewBag.lat = rvm.Latitude;
                ViewBag.lon = rvm.Longitude;

                lcvm = _adapter.GetListViewModel(rvm);

                if (lcvm == null) // not found
                    return View();
                else
                    return View("DisplayByCoords", lcvm);
            }

            return View();
        }