public EditRouteViewModel MapEditDomainToModel(EditRouteViewModel model)
        {
            model = model ?? new EditRouteViewModel();

            MapEditLists(model);
            return model;
        }
        public ActionResult Create()
        {
            var model = new EditRouteViewModel();

            model = _mapper.MapEditDomainToModel(model);

            return View(model);
        }
        public EditRouteViewModel MapEditModelToDomain(EditRouteViewModel model, IPrincipal user)
        {
            model.DateEntered = DateTime.Now;

            DodgingBranches.Models.Route routeToAdd = MapViewModelToDomain(model);

            _routeService.AddRoute(routeToAdd);

            return model;
        }
        public ActionResult Create(EditRouteViewModel model)
        {
            if (ModelState.IsValid)
            {

                _mapper.MapEditModelToDomain(model, User);
                return RedirectToRoute(new {controller= "Route",Action="Index"});
            }

            return RedirectToAction("Create");
        }
        private void MapEditLists(EditRouteViewModel model)
        {
            var stateItems = new List<SelectListItem>{
                new SelectListItem{Text = "Minnesota", Value="MN"},
                new SelectListItem{Text = "Iowa", Value="IA"},
                new SelectListItem{Text = "Kansas", Value="KS"},
                new SelectListItem{Text = "North Dakota", Value="ND"}
            };

            model.Addr.State = stateItems;
        }