Esempio n. 1
0
        public async Task <IActionResult> GetExperienceAsync(int id)
        {
            if (!ModelState.IsValid)
            {
                return(BadRequest(ModelState));
            }
            var result = await _service.GetExperienceAsync(id);

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

            return(Ok(result));
        }