예제 #1
0
        public async Task <IActionResult> DeleteExperienceAsync([FromRoute] int id)
        {
            if (!ModelState.IsValid)
            {
                return(BadRequest(ModelState));
            }

            var course = await _service.FindExperience(id);

            if (course == false)
            {
                return(NotFound());
            }

            await _service.DeleteExperienceAsync(id);

            return(Ok(course));
        }