public IEnumerable <SubprocessDTO> GetSubprocessesByProcessID(int id) { return(dbm.FindAllSubprocesses(true) .Where(x => x.Process.ProcessID == id) .Select(x => converter.SubprocessToDTO(x)) .ToList()); }
public IEnumerable <SubprocessDTO> GetSubprocesses() { return(dbm.FindAllSubprocesses(true).Select(x => converter.SubprocessToDTO(x)).ToList()); }