public IActionResult GetRoute(Guid routeId) { try { // var routes may return as a list or just an object... var routes = RouteRepo.GetRoute(routeId); return(Ok(routes)); } catch (Exception e) { return(StatusCode(500, _config["StatusCodesText:ServerErr"])); } }
private Route LoadRouteFromDb() { Directory.CreateDirectory(Path.GetDirectoryName(dbFilePath)); return(RouteRepository.GetRoute(dbFilePath)); }
public async Task <Route> GetRoute(long routeId, CancellationToken cancellationToken) { Route route = await _routeRepository.GetRoute(routeId, cancellationToken); return(route); }
public RouteGeoView GetRoute(int id) { return(rep.GetRoute(id)); }
// GET: Truck/Details/5 public ActionResult Details(int id) { var route = routeRepository.GetRoute(id); return(View(route)); }