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)); }