public ActionResult ModifyCountry(CountryViewModel model) { if (ModelState.IsValid) { //创建数据 Country data = new Country(); data.Id = model.Id; data.Name = model.Name; data.Remark = model.Remark ?? string.Empty; //保存数据 string strErrText; DDSystem country = new DDSystem(); if (country.UpdateCountry(data, LoginAccountId, LoginStaffName, out strErrText)) { return Json(string.Empty); } else { return Json(strErrText); } } return View(model); }