protected void Page_Load(object sender, EventArgs e)
 {
     if (User.Identity.IsAuthenticated)
         if (Request.UrlReferrer != null)
             if (Request.UrlReferrer.AbsolutePath.ToString() == "/Account/Register.aspx")
             {
                 ControllerClient ctrl = new ControllerClient(User.Identity);
                 ctrl.insertOwner();
                 Response.Redirect("/Client/PageClientEdit.aspx");
             }
             else
                 Response.Redirect("/");
         else
             Response.Redirect("/");
     else
         Response.Redirect("/");
 }
 public void refreshController()
 {
     ctrl = null;
 }