Exemple #1
0
        public JsonResult _GetAccountShipmentAddress(int accountId)
        {
            var accountAdress = _accountServices.GetAccountAddressById(accountId);

            if (accountAdress == null)
            {
                return(null);
            }
            return(Json(new { AddressLine1 = accountAdress.AddressLine1, AddressLine2 = accountAdress.AddressLine2, AddressLine3 = accountAdress.AddressLine3, AddressLine4 = accountAdress.AddressLine4, ShipmentAddressPostcode = accountAdress.PostCode }, JsonRequestBehavior.AllowGet));
        }