public List <Project> GetPersonalManagerProjects(string username, bool loadParticipants = false) { List <Project> userProjects = projectDal.GetAllProjectsManagedBy(username); if (!loadParticipants) { foreach (Project userProject in userProjects) { List <string> participants = projectDal.GetProjectParticipants(userProject.Code); foreach (var participant in participants) { userProject.addParticipant(participant); } } } return(userProjects); }