public async Task <MessageModel <int> > Post([FromBody] QuestionBank questionBank) { if (questionBank == null) { return(new MessageModel <int>() { msg = "参数异常", response = 0 }); } var blogId = await _questionBankRepository.Add(questionBank); return(new MessageModel <int>() { msg = "添加成功", success = true, response = blogId }); }