/// <summary> /// 删除地址 /// </summary> /// <returns></returns> public ActionResult DelAddress() { string CompanyID = WebUtil.GetFormValue <string>("CompanyID"); string SnNum = WebUtil.GetFormValue <string>("SnNum"); string CustomerSN = WebUtil.GetFormValue <string>("CustomerSN"); CustomerProvider provider = new CustomerProvider(CompanyID); int line = provider.DeleteAddress(SnNum, CustomerSN); DataResult result = null; if (line > 0) { result = new DataResult() { Code = (int)EResponseCode.Success, Message = "删除成功" }; } else { result = new DataResult() { Code = (int)EResponseCode.Exception, Message = "删除失败" }; } return(Content(JsonHelper.SerializeObject(result))); }