protected void ButtonLogin_Click(object sender, EventArgs e)
        {
            if (string.IsNullOrEmpty(this.TextBoxLoginUserName.Text) | string.IsNullOrEmpty(this.TextBoxLoginPassword.Text))
            {
                MessageBox.Show("provide User Name and Password");
            }
            var client = new AdminAuthServiceClient();

            var operatorModel = new OperatorModel
            {
                UserName = TextBoxLoginUserName.Text,
                Password = TextBoxLoginPassword.Text
            };


            bool result = Convert.ToBoolean(client.AuthenticateOperator(operatorModel));

            // MessageReturn.Text = str;
            client.Close();
            if (result)
            {
                Session["user"] = TextBoxLoginUserName.Text;

                Response.Redirect("http://localhost:65173/ApplicationPage.aspx");
            }
            else
            {
                Label1.Text = "Sorry, login failed";
            }
        }
        protected void ButtonRegister_Click(object sender, EventArgs e)
        {
            var client = new AdminAuthServiceClient();

            var operatorModel = new OperatorModel
            {
                UserName = TextBoxUserName.Text,
                Password = TextBoxPassword.Text
            };

            bool result = Convert.ToBoolean(client.RegisterOperator(operatorModel));

            if (result)
            {
                Response.Redirect("OperatorAuth.aspx");
            }
            else
            {
                LabelMessage.Text = "User already taken";
            }


            client.Close();
        }