Beispiel #1
0
        public async Task <ActionResult <WorkExperience> > GetByIdAsync([FromRoute] Guid id)
        {
            var result = await workExperienceService.GetByIdAsync(id);

            if (result == null)
            {
                return(NotFound());
            }

            return(Ok(result));
        }
Beispiel #2
0
        public async Task <ActionResult <WorkExperience> > GetByIdAsync([FromRoute] string id)
        {
            var workExperience = await workExperienceService.GetByIdAsync(id);

            if (workExperience != null)
            {
                return(Ok(workExperience));
            }

            return(NotFound());
        }