public IEnumerable <ProcessDTO> GetProcessesWithSubprocess(bool hasSub) { return(dbm.FindAllProcessesWithSubprocess(hasSub) .Select(x => converter.ProcessToDTO(x)) .ToList()); }