public LearnOnlineModule() { Get["/learnOnline"] = parameters => { var toolsMastering = _source.GetMasteringTools(); var programmingChallenges = _source.GetProgrammingChallenges(); return(View["learnOnlineList", new LearOnlineListViewModel(toolsMastering, programmingChallenges)]); }; }
public LearnOnlineModule(IJsonReader repository) { var source = new LearnOnlineSource(repository); Get["/learnOnline"] = parameters => { var toolsMastering = source.GetMasteringTools(); var programmingChallenges = source.GetProgrammingChallenges(); return(View["learnOnlineList", new WebsiteViewModel(toolsMastering, programmingChallenges, Request.Url)]); }; }