public IEnumerable <ProjectVM> GetAllProjects() { var projects = _projects.FindAll(); var projectVMs = Map <IEnumerable <Project>, IEnumerable <ProjectVM> >(projects); return(projectVMs); }
public IList <Project> FindAll() { IList <Project> list = new List <Project>(); IList <ProjectBO> listBO = new List <ProjectBO>(); listBO = projectDao.FindAll(); if (listBO != null && listBO.Count > 0) { foreach (ProjectBO obj in listBO) { list.Add(new Project(obj)); } } return(list); }