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(); }
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(); }
public LearningController(InfoRepository infoRepository) { _infoRepository = infoRepository; }
public IntroductionController(InfoRepository infoRepository) { _infoRepository = infoRepository; }