protected void btnUpdate_Click(object sender, EventArgs e) { AccountController oAccountController = new AccountController(); Account oAccount = new Account(); oAccount.Name = txtName.Text; oAccount.Surname = txtSurname.Text; oAccount.BirthDay = txtBirthDay.Text; oAccount.Phone = txtPhone.Text; oAccount.Email = txtEmail.Text; oAccount.Password = txtPassword.Text; oAccount.CityId = Convert.ToInt32(dllCity.SelectedValue.ToString()); oAccount.Adress = txtAdress.Text; if (oAccount.ProfilImage != Session["imgAccount"].ToString()) { oAccount.ProfilImage = Session["imgAccount"].ToString(); } oAccountController.AccountUpdate(oAccount); Response.Redirect("~/Login.aspx"); }