public async Task <MessageModel <bool> > Put([FromBody] QuestionBank questionBank) { if (questionBank == null || !(questionBank.Id > 0)) { return(new MessageModel <bool>() { msg = "参数异常", response = false }); } var isSuc = await _questionBankRepository.Update(questionBank); return(new MessageModel <bool>() { msg = isSuc ? "更新成功" : "更新失败", success = isSuc, response = isSuc }); }