Exemplo n.º 1
0
        public IProfileAddress Populate(
            int?addressId, string address1, string address2, string city, string stateAbev, string zipCode
            )
        {
            var UsertAddressAddres = _AddressCrudData.PopulateUpSertAddress(
                addressId, address1, address2, city, stateAbev, zipCode, false, true
                );

            return(UsertAddressAddres);
        }
        public IProfileAddress Create(
            string address1, string address2, string city, string stateAbev,
            string zipCode, bool isPrimary, bool isSecondary
            )
        {
            var NewAddress = _AddressPopulateMgr.PopulateUpSertAddress(0, address1, address2, city, stateAbev, zipCode, isPrimary, isSecondary);

            _Profile.Addresses.Add(NewAddress);

            _ProfileJsonManager.UpdateProfile(_Profile);

            return(NewAddress);
        }