Ejemplo n.º 1
0
        public IHttpActionResult GetEducationByProgrammerId(string userId)
        {
            IEnumerable <EducationModel> education;

            try
            {
                education = Mapper.Map <IEnumerable <EducationDTO>, IEnumerable <EducationModel> >(_educationService.GetEducationByProgrammerId(userId));
            }
            catch (ValidationException)
            {
                return(NotFound());
            }
            catch (Exception)
            {
                return(InternalServerError());
            }
            return(Ok(education));
        }