public async Task <IActionResult> DeleteAsync(int id) { var result = await _experienceService.DeleteAsync(id); if (!result.Success) { return(BadRequest(result.Message)); } var experienceResource = _mapper.Map <Experience, ExperienceResource>(result.Resource); return(Ok(experienceResource)); }