public IEnumerable <ViewModels.DictaatPageSummary> GetDictaatPages(string dictaatName) { string path = _pathHelper.PagesPath(dictaatName); return(_directory.GetFilesSummary(path) .Select(f => new ViewModels.DictaatPageSummary(f))); }
public Dictaat GetDictaat(string name) { Dictaat dictaat = new Dictaat(); dictaat.Name = name; dictaat.Location = _pathHelper.DictaatPath(name); dictaat.Pages = _directory.GetFilesSummary(_pathHelper.PagesPath(name)); dictaat.MenuItems = _menuFactory.GetMenu(name); return(dictaat); }