コード例 #1
0
        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)));
        }