Updated Route controller to adapt to new model
This commit is contained in:
parent
334ad6bce5
commit
9e00882743
@ -152,9 +152,7 @@ namespace EFB.Controllers
|
|||||||
{
|
{
|
||||||
//fill in route
|
//fill in route
|
||||||
string finalRoute = RouteModel.ParseRoute(routeString);
|
string finalRoute = RouteModel.ParseRoute(routeString);
|
||||||
|
user.Route = finalRoute;
|
||||||
RouteModel route = RouteModel.StringToRoute(departure, arrival, cruise, finalRoute);
|
|
||||||
user.Route = route;
|
|
||||||
HttpContext.Session.SetObject("User", user);
|
HttpContext.Session.SetObject("User", user);
|
||||||
|
|
||||||
return RedirectToAction("Index", "Route");
|
return RedirectToAction("Index", "Route");
|
||||||
|
Loading…
Reference in New Issue
Block a user