public ResultApi <string> SaveInfo() { var result = new ResultApi <string>(); try { var dbContext = new PatientContext(); dbContext.Patients.Add(_patient); dbContext.Save(); result.Sucess = true; result.ReturnMsg = "保存信息成功"; } catch (Exception exp) { result.ReturnMsg = exp.Message; result.Sucess = false; result.Data = "保存失败"; } return(result); }