public async Task <IActionResult> GetExperienceByID(int id) { Experience experience = await _experienceRepository.FindAsync(id); if (experience == null) { return(NotFound()); } return(new JsonResult(_mapper.Map <Experience, ExperienceDto>(experience))); }