Exemplo n.º 1
0
 public DashboardModule()
 {
     Get["/"] = x =>
         {
             var model = new Model();
             var t = new Trains();
             model.Trains =  t.GetTrains();
             return View["index", model];
         };
 }
Exemplo n.º 2
0
 public DashboardModule()
 {
     Get["/"] = x =>
     {
         var model = new Model();
         var t     = new Trains();
         model.Trains = t.GetTrains();
         return(View["index", model]);
     };
 }