public async Task <ActionResult> DeleteCoach(int id) { var result = await _coachService.DeleteAsync(id); if (!result.Success) { return(BadRequest(result.Message)); } var coachResource = _mapper.Map <Coach, CoachResource>(result.Coach); return(Ok(coachResource)); }