private void CustomerSch_Click(object sender, EventArgs e)
        {
            dynamic customer = CustomerControllers.GetCustomer(tBStaffDbSearch.Text);

            if (customer != null)
            {
                tBCustomerSeachName.Text      = customer.Name;
                tBCustomerSearchUsername.Text = customer.Username;
            }
            else
            {
                tBCustomerSeachName.Text      = "";
                tBCustomerSearchUsername.Text = "";
                MessageBox.Show("cannot find staff");
            }
        }
        private void CustomerDelete_Click(object sender, EventArgs e)
        {
            var customer = new
            {
                Name     = tBCustomerSeachName.Text,
                Username = tBCustomerSearchUsername.Text,
            };
            var r = CustomerControllers.DeleteCustomer(tBCustomerSearchUsername.Text);

            if (r)
            {
                MessageBox.Show("delete successfully");
            }
            else
            {
                MessageBox.Show("could not delete");
            }
        }
        private void CustomerUpdate_click(object sender, EventArgs e)
        {
            var customer = new
            {
                Name     = tBCustomerSeachName.Text,
                Username = tBCustomerSearchUsername.Text
            };
            var r = CustomerControllers.UpdateCustomer(customer);

            if (r)
            {
                MessageBox.Show("update success");
            }
            else
            {
                MessageBox.Show("could not update");
            }
        }
        private void AddCustomerSt_Click(object sender, EventArgs e)
        {
            var customer = new
            {
                Name     = tBStaffDsBName.Text,
                Username = tBStaffDsBUsername.Text,
                Password = tBStaffDsBPassword.Text,
            };
            var r = CustomerControllers.AddCustomer(customer);

            if (r)
            {
                MessageBox.Show("user added");
            }
            else
            {
                MessageBox.Show("user not added");
            }
        }
 public StaffDashBoardcs()
 {
     InitializeComponent();
     gridStaffUsers.DataSource = CustomerControllers.GetAllCustomer();
 }