public async Task <ActionResult <Trainer> > Delete(int id) { var entity = await _trainerService.DeleteTrainersAsync(id); if (entity == null) { return(NotFound()); } else { return(Ok(entity)); } }