Esempio n. 1
0
        // <summary>
        /// 删除地址
        /// </summary>
        /// <param name="uid"></param>
        /// <param name="id"></param>
        /// <returns></returns>
        public string DelAddress(string uid, string id)
        {
            string res = "";

            try
            {
                bool resb = addrdal.DelAddress(uid, id);
                res = JsonConvert.SerializeObject(new { code = 0, msg = "ok", upstate = resb });
            }
            catch (Exception ex)
            {
                res = JsonConvert.SerializeObject(new { code = 10003, msg = "系统故障", count = 0 });
                LogHelper.ErrorLog("UpdateDefaultAddress异常:" + ex.Message + "," + ex.StackTrace);
            }
            return(res);
        }
Esempio n. 2
0
 /// <summary>
 /// 删除地址
 /// </summary>
 /// <param name="id"></param>
 /// <param name="uname"></param>
 /// <returns></returns>
 public int DelAddress(int id, string uname)
 {
     return(dal.DelAddress(id, uname));
 }