Exemplo n.º 1
0
        protected void btnSubmit_Click(object sender, EventArgs e)
        {
            PropertyModel model = new PropertyModel();

            model.PropertyName  = txtPropertyName.Value;
            model.ContactPerson = txtContact.Value;
            model.Address1      = txtAddress1.Value;
            model.Address2      = txtAddress2.Value;
            model.Zip           = txtZip.Value;
            model.Phone         = txtPhone.Value;
            model.Email         = txtEmail.Value;

            model.CompanyID = Sess.Person.CompanyID;

            PropertyBL propBL = new PropertyBL();

            propBL.AddProperty(model);
            Sess.Person.Reload();
            Response.Redirect("~/default.aspx");
        }