protected void Page_Load(object sender, EventArgs e)
 {
     CityController oCityController = new CityController();
     foreach (City item in oCityController.CityList())
     {
         dllCity.Items.Add(new ListItem { Value = item.Id.ToString(), Text = item.Name });
     }
     Account oAccountProfil = new Account();
     if (Session["Account"] != null)
     {
         oAccountProfil = (Account)Session["Account"];
         txtName.Text = oAccountProfil.Name;
         txtSurname.Text = oAccountProfil.Surname;
         txtBirthDay.Text = oAccountProfil.BirthDay;
         txtPhone.Text = oAccountProfil.Phone;
         txtEmail.Text = oAccountProfil.Email;
         txtPassword.Text = oAccountProfil.Password;
         txtAdress.Text = oAccountProfil.Adress;
         Session["imgAccount"] = oAccountProfil.ProfilImage;
     }
     else
     {
         Response.Redirect("~/Default.aspx");
     }
 }
 protected void Page_Load(object sender, EventArgs e)
 {
     CityController oCityController = new CityController();
     foreach (City item in oCityController.CityList())
     {
         txtCity.Items.Add(new ListItem { Value = item.Id.ToString(), Text = item.Name });
     }
 }