public List <ProjectViewModel> GetProjects() { var projectModels = new List <ProjectViewModel>(); // Projects are not expected to be more than 20 var projects = _projectRepo.GetEntities(1, 50); foreach (var project in projects) { projectModels.Add(_mapper.Map <ProjectViewModel>(project)); } return(projectModels); }