private async void CurrentStockButton_Click(object sender, RoutedEventArgs e)
        {
            DataTable SerEmpCliStats = await controller.GetStock();

            StatisticsWindow statisticsWindow = new StatisticsWindow(SerEmpCliStats);

            statisticsWindow.Show();
        }
        //admin and employee role
        //get the PartSupplies view
        private async void IncomingPartSuppliesButton_Click(object sender, RoutedEventArgs e)
        {
            DataTable SerEmpCliStats = await controller.GetAllTable("PartSupplies");

            StatisticsWindow statisticsWindow = new StatisticsWindow(SerEmpCliStats);

            statisticsWindow.Show();
        }
        //Admin and Employee
        //Get Services With Most Clients
        private async void SersWithMostCli_Click(object sender, RoutedEventArgs e)
        {
            DataTable statsBr = await controller.GetSerWithMostCli();

            StatisticsWindow statisticsWindow = new StatisticsWindow(statsBr);

            statisticsWindow.Show();
        }
        //Get Employees With no Projects
        private async void EmpWithoutProj_Click(object sender, RoutedEventArgs e)
        {
            DataTable statsBr = await controller.GetEmpWithoutProj();

            StatisticsWindow statisticsWindow = new StatisticsWindow(statsBr);

            statisticsWindow.Show();
        }
        //Get Statistics about Salary by Branch
        private async void EmpSalaryStatsBr_Click(object sender, RoutedEventArgs e)
        {
            DataTable statsBr = await controller.GetSalStatisticsBr();

            StatisticsWindow statisticsWindow = new StatisticsWindow(statsBr);

            statisticsWindow.Show();
        }
        //Get Select Employee Suboridinates
        private async void EmpSubordinates_Click(object sender, RoutedEventArgs e)
        {
            //if no row is selected
            if (EmployeesDataGrid.SelectedCells.Count == 0)
            {
                MessageBox.Show("No Employee is Selected", "Select an Employee");
                return;
            }

            DataTable statsBr = await controller.GetEmpSubordinates(employeesSelectedCells[0]);

            StatisticsWindow statisticsWindow = new StatisticsWindow(statsBr);

            statisticsWindow.Show();
        }