protected void btnLogin_Click(object sender, EventArgs e)
        {
            try
            {
                clientDTO.Email    = txtLoginEmail.Text;
                clientDTO.Password = txtLoginPass.Text;
                if (clientBLL.Authenticator(clientDTO.Email, clientDTO.Password))
                {
                    string clientId   = clientBLL.ReturnID(clientDTO.Email);
                    string clientType = clientBLL.ConsultID(int.Parse(clientId)).Rows[0]["type"].ToString();

                    Session["UserEmail"] = clientDTO.Email;
                    Session["UserId"]    = clientId;
                    Session["UserType"]  = clientType;
                    SuccessMessage("Seja bem-vindo");

                    switch (clientType)
                    {
                    case "client":
                        Response.Redirect("clientHome.aspx");
                        break;

                    case "admin":
                        Response.Redirect("home.aspx");
                        break;

                    default:
                        Response.Redirect("clientHome.aspx");
                        break;
                    }
                }
                else
                {
                    ErrorMessage("Cliente não encontrado");
                }
            }
            catch (Exception error)
            {
                ErrorMessage(error.Message);
            }
        }