public async Task <IActionResult> PermanentlyDeleteById(int id) { try { var result = await _repo.PermanentlyDeleteById(id); return(StatusCode(200, new SuccessResponseDto { Message = "Xóa " + _entityName + " thành công!", Result = new SuccessResponseResultWithSingleDataDto { Data = result } })); } catch (Exception e) { return(StatusCode(500, new FailedResponseDto { Message = "Xóa " + _entityName + " thất bại!", Result = new FailedResponseResultDto { Errors = e } })); } }