Exemplo n.º 1
0
        public LearnOnlineModule()
        {
            Get["/learnOnline"] = parameters =>
            {
                var toolsMastering        = _source.GetMasteringTools();
                var programmingChallenges = _source.GetProgrammingChallenges();

                return(View["learnOnlineList", new LearOnlineListViewModel(toolsMastering, programmingChallenges)]);
            };
        }
Exemplo n.º 2
0
        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)]);
            };
        }