Ejemplo n.º 1
0
 public ActionResult DelShippAddress(int id)
 {
     if (id < 1)
     {
         return base.Content("NOID");
     }
     Maticsoft.BLL.Shop.Shipping.ShippingAddress address = new Maticsoft.BLL.Shop.Shipping.ShippingAddress();
     Maticsoft.Model.Shop.Shipping.ShippingAddress model = address.GetModel(id);
     if ((model != null) && (base.CurrentUser.UserID == model.UserId))
     {
         return base.Content(address.Delete(id) ? "OK" : "NO");
     }
     return base.Content("ERROR");
 }
Ejemplo n.º 2
0
 public ActionResult ShippAddress(int id = -1, string viewName = "ShippAddress")
 {
     IPageSetting pageSetting = PageSetting.GetPageSetting("Home", ApplicationKeyType.Shop);
     ((dynamic) base.ViewBag).Title = "我的收货地址" + pageSetting.Title;
     ((dynamic) base.ViewBag).Keywords = pageSetting.Keywords;
     ((dynamic) base.ViewBag).Description = pageSetting.Description;
     Maticsoft.BLL.Shop.Shipping.ShippingAddress address = new Maticsoft.BLL.Shop.Shipping.ShippingAddress();
     Maticsoft.Model.Shop.Shipping.ShippingAddress model = new Maticsoft.Model.Shop.Shipping.ShippingAddress();
     if (id > 0)
     {
         model = address.GetModel(id);
     }
     return base.View(viewName, model);
 }