Ejemplo n.º 1
0
        public List <RouteViewModel> GetRouteForExcursions(ExcursionViewModel ed)
        {
            var routes = new List <RouteViewModel>();

            foreach (var route in ed.RouteForExcursions)
            {
                routes.Add(routeLogic.Read(new RouteBindingModel
                {
                    Id = route.RouteId
                }).FirstOrDefault());
            }
            return(routes);
        }
Ejemplo n.º 2
0
 public IActionResult CreateExcursion()
 {
     ViewBag.RouteForExcursions = routeLogic.Read(null);
     return(View());
 }
Ejemplo n.º 3
0
 public IActionResult Route()
 {
     ViewBag.Routes = routes.Read(null);
     return(View());
 }