public ActionResult VinAdd(string phone, string vin, int?page) { phone = HttpUtility.UrlDecode(phone); vin = HttpUtility.UrlDecode(vin); var rlt = new ResultBase(); if (VinManager.IsRepeatVin_record(phone, vin)) { var id = Guid.NewGuid().ToString(); var u = (User != null && User.Identity != null) ? User.Identity.Name : string.Empty; if (!VinManager.InsertVin_record(id, phone, vin, u)) { rlt.Error("数据录入失败,请联系管理员 " + SqlAdapter.LastError.Message + " " + SqlAdapter.ConnStr()); } } else { rlt.Error("数据已存在"); } return(Content(rlt.ToJson())); }