Ejemplo n.º 1
0
        public IActionResult GetFreelancer(Guid freelancerId)
        {
            var freelancerRep = _WorkRepository.GetFreelancer(freelancerId);

            if (!freelancerRep.Any())
            {
                return(NotFound());
            }

            var projects = freelancerRep.Select(a => new ProjectDto
            {
                ProjetId  = a.Id,
                Title     = a.Title,
                startDate = a.StartDate
            });

            return(Ok(projects));
        }