Example #1
0
        public JsonResult SetDefaultShippingAddress(long id)
        {
            var userId = CurrentUser.Id;

            _iShippingAddressService.SetDefaultShippingAddress(id, userId);
            return(Json(new Result()
            {
                success = true, msg = "设置成功"
            }));
        }
 /// <summary>
 /// 设置用户的默认收获地址
 /// </summary>
 /// <param name="id"></param>
 public static void SetDefaultShippingAddress(long id, long userId)
 {
     _iShippingAddressService.SetDefaultShippingAddress(id, userId);
 }