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