コード例 #1
0
        public ActionResult DelCusAddress(string cusNum, string snNum)
        {
            List <CusAddressEntity> list = Session[CacheKey.JOOSHOW_CUSADDRESS_CACHE] as List <CusAddressEntity>;

            list = list == null ? new List <CusAddressEntity>() : list;
            if (list.Exists(a => a.SnNum == snNum))
            {
                list.Remove(a => a.SnNum == snNum);
                CustomerProvider provider = new CustomerProvider();
                provider.DelCusAddress(snNum, cusNum);
            }
            Session[CacheKey.JOOSHOW_CUSADDRESS_CACHE] = list;
            this.ReturnJson.AddProperty("d", "success");
            return(Content(this.ReturnJson.ToString()));
        }