// GET: Web/UserAddress
        public ActionResult Index()
        {
            var userId = CurrentUser.Id;
            var m      = _iShippingAddressService.GetUserShippingAddressByUserId(userId);

            return(View(m));
        }
Esempio n. 2
0
        // GET: Web/UserAddress
        public ActionResult Index()
        {
            var userId = CurrentUser.Id;
            var m      = _iShippingAddressService.GetUserShippingAddressByUserId(userId);

            ViewBag.Keyword  = string.IsNullOrWhiteSpace(SiteSettings.SearchKeyword) ? SiteSettings.Keyword : SiteSettings.SearchKeyword;
            ViewBag.Keywords = SiteSettings.HotKeyWords;
            #region 是否开启门店授权
            ViewBag.IsOpenStore = SiteSettingApplication.SiteSettings != null && SiteSettingApplication.SiteSettings.IsOpenStore;
            #endregion
            return(View(m));
        }
 /// <summary>
 /// 获取用户的收货地址列表
 /// </summary>
 /// <param name="userId"></param>
 /// <returns></returns>
 public static List <ShippingAddressInfo> GetUserShippingAddressByUserId(long userId)
 {
     return(_iShippingAddressService.GetUserShippingAddressByUserId(userId));
 }