public ProjectDepartmentsDTO GetProjectDepartmentsDTO(int ProjectId) { ProjectDepartmentsDTO output = new ProjectDepartmentsDTO(); ProjectDAO projectDao = new ProjectDAO(); output.Project = projectDao.GetFiltered("id", ProjectId.ToString()); DepartmentDAO departmentDAO = new DepartmentDAO(); output.Departments = departmentDAO.GetAll(); return(output); }