public ProjectDto GetProject(int id)
        {
            var project = _repository.Get(id);

            if (project == null)
            {
                return(null);
            }

            return(DTOMapper.GetProjectDto(project));
        }
        public IEnumerable <ProjectDto> GetProjectsByTechnology(string technology)
        {
            technology = technology.ToLower().TrimStart();
            var list = _repository.Projects.Where(x => x.Technologies.Select(t => t.Name.ToLower()).ToList().Any(s => s.Contains(technology))).ToList();

            if (list.Count() > 0)
            {
                var dtoS = list.Select(x => DTOMapper.GetProjectDto(x)).ToList();
                return(dtoS);
            }
            else
            {
                return(null);
            }
        }
        public IEnumerable <ProjectDto> GetProjectsByName(string name)
        {
            name = name.ToLower().TrimStart();;
            var list = _repository.Projects.Where(x => x.Description.ToLower().Contains(name)).ToList();

            if (list.Count() > 0)
            {
                var dtoS = list.Select(x => DTOMapper.GetProjectDto(x)).ToList();
                return(dtoS);
            }
            else
            {
                return(null);
            }
        }
 public IEnumerable <ProjectDto> GetAllProjects()
 {
     return(_repository.Projects.Select(x => DTOMapper.GetProjectDto(x)).ToList());
 }