public IEnumerable <DialogGraph> GetAll() { var nodes = _nodeProvider.GetAll(); var dialogs = _dialogRepository.GetAll(); return(dialogs .Select(d => nodes.First(n => n.Id == d.StartNodeId)) .Select(n => new DialogGraph(n))); }