예제 #1
0
        public ActionResult AjaxHandlerGet()
        {
            var routesVMs = _routeApplicationService.GetAll();

            return(Json(new
            {
                aaData = routesVMs,
                success = true
            }));
        }
예제 #2
0
        public IEnumerable <RouteVM> GetRoutes()
        {
            var routes = _routeApplicationService.GetAll();

            IList <RouteVM> routesVM = _mapper.Map <List <RouteVM> >(routes);

            return(routesVM);
        }