コード例 #1
0
        public IntroductionModel(InfoRepository infoRepository)
        {
            Definition = "The most simplistic definition of Hypermedia is content with links.";

            Articles = (from i in infoRepository.GetNodes()
                      where i.Category == "Introduction" && i.SubCategory == "Article"
                      select i).ToList();

            Usages = (from i in infoRepository.GetNodes()
                      where i.Category == "Introduction" && i.SubCategory == "Usage"
                      select i).ToList();
        }
コード例 #2
0
        public LearningViewModel(InfoRepository infoRepository)
        {
            PageTitle = "Learning";

            Community = new List<InfoNode>();

            Videos = (from i in infoRepository.GetNodes()
                      where i.Category == "Learning" && i.SubCategory == "Videos"
                      select i).ToList();

            Community = (from i in infoRepository.GetNodes()
                      where i.Category == "Learning" && i.SubCategory == "Community"
                      select i).ToList();
        }
コード例 #3
0
 public LearningController(InfoRepository infoRepository)
 {
     _infoRepository = infoRepository;
 }
コード例 #4
0
 public IntroductionController(InfoRepository infoRepository)
 {
     _infoRepository = infoRepository;
 }