Updated Route controller to adapt to new model

This commit is contained in:
Luke Else 2022-01-31 14:23:04 +00:00
parent 334ad6bce5
commit 9e00882743

View File

@ -152,9 +152,7 @@ namespace EFB.Controllers
{
//fill in route
string finalRoute = RouteModel.ParseRoute(routeString);
RouteModel route = RouteModel.StringToRoute(departure, arrival, cruise, finalRoute);
user.Route = route;
user.Route = finalRoute;
HttpContext.Session.SetObject("User", user);
return RedirectToAction("Index", "Route");