//
        // GET: /Route/
        public ActionResult Index()
        {
            var model = new RoutesViewModel();

            model = _mapper.MapDomainToModel(User);

            return View(model);
        }
        public RoutesViewModel MapDomainToModel(IPrincipal user)
        {
            var model = new RoutesViewModel();

            model.Location = "Minneapolis, MN";

            var routes = _routeService.GetDefaultRoutesForUser(user.Identity.Name);

            return BuildRoutesViewModel(routes);
        }
        private RoutesViewModel BuildRoutesViewModel(List<Route> routes)
        {
            var returnViewModel = new RoutesViewModel();

            returnViewModel.Routes = new List<RouteViewModel>();

            foreach (var route in routes)
            {
                returnViewModel.Routes.Add(BuildRouteViewModelFromDomain(route));
            }

            return returnViewModel;
        }