Beispiel #1
0
        public OneAddressResponse GetOneAddress(OneAddressRequest request)
        {
            OneAddressResponse response = new OneAddressResponse();
            //获取所有的地址信息
            List <UserAddress> infos = BaseBLL <UserInfobll> .Instance.ShowressInfo(request.UserId);

            response.Info  = infos.Where(c => c.Id == request.AddressId).FirstOrDefault();
            response.State = true;
            return(response);
        }
Beispiel #2
0
        public JsonResult GetOneAddress(OneAddressRequest request)
        {
            OneAddressResponse response = userBll.GetOneAddress(request);

            return(Json(response));
        }
Beispiel #3
0
        //显示单条地址信息
        public OneAddressResponse GetOneAddress(OneAddressRequest request)
        {
            OneAddressResponse response = ApiRequestHelper.Post <OneAddressRequest, OneAddressResponse>(request);

            return(response);
        }