public AlgorithmsModule(IAlgorithmManager algorithmManager) : base("/algorithms") { Get["/"] = _ => { // return our view return(View["algorithms", new AlgorithmsModel { Algorithms = algorithmManager.GetAllAsReadOnly() }]); }; }
public AlgorithmsModule(IAlgorithmManager algorithmManager) : base("/algorithms") { Get["/"] = _ => { // return our view return View["algorithms", new AlgorithmsModel { Algorithms = algorithmManager.GetAllAsReadOnly() }]; }; }
public IndexModule(IStatisticsManager statisticsManager, IPoolManager poolManager, IAlgorithmManager algorithmManager) { Get["/"] = _ => { // include common data required by layout. ViewBag.Header = "Welcome"; // return our view return(View["index", new IndexModel { Pools = poolManager.GetAllAsReadOnly(), Algorithms = algorithmManager.GetAllAsReadOnly(), Statistics = statisticsManager }]); }; }
public IndexModule(IStatisticsManager statisticsManager, IPoolManager poolManager, IAlgorithmManager algorithmManager) { Get["/"] = _ => { // include common data required by layout. ViewBag.Header = "Welcome"; // return our view return View["index", new IndexModel { Pools = poolManager.GetAllAsReadOnly(), Algorithms = algorithmManager.GetAllAsReadOnly(), Statistics = statisticsManager }]; }; }