Exemplo n.º 1
0
    protected void Modify_Data(object sender, EventArgs e)
    {
        UserAccountsWrapper userWrapper = new UserAccountsWrapper();
        AddressWrapper      addWrapper  = new AddressWrapper();

        user.FirstName = UserFirstName.Text;
        user.LastName  = UserLastName.Text;
        user.Password  = UserPassword.Text;
        user.Email     = UserEmail.Text;
        user.Phone     = UserPhone.Text;

        add.Country   = AddressCountry.Text;
        add.State     = AddressState.Text;
        add.City      = AddressCity.Text;
        add.Sector    = AddressSector.Text;
        add.Street    = AddressStreet.Text;
        add.StreetNo  = AddressNumber.Text;
        add.Building  = AddressBuilding.Text;
        add.Staircase = AddressStaircase.Text;
        add.Apartment = AddressApartment.Text;
        add.Floor     = AddressFloor.Text;

        userWrapper.update(user);
        addWrapper.update(add);
    }
Exemplo n.º 2
0
    protected void Modify_Data(object sender, EventArgs e)
    {
        UserAccountsWrapper userWrapper = new UserAccountsWrapper();
        AddressWrapper      addWrapper  = new AddressWrapper();

        user.FirstName = UserFirstName.Text;
        user.LastName  = UserLastName.Text;
        user.Password  = UserPassword.Text;
        user.Email     = UserEmail.Text;
        user.Phone     = UserPhone.Text;

        add.Country = AddressCountry.Text;
        add.State   = AddressState.Text;
        add.City    = AddressCity.Text;

        userWrapper.update(user);
        addWrapper.update(add);
    }