private void Button_Click(object sender, RoutedEventArgs e)
        {
            if (_employee.Role == "2")
            {
                leaveRequestVM.Id = Convert.ToInt32(_fromRequestId);

                var result    = iLeaveRequestService.ApproveManager(leaveRequestVM.Id, leaveRequestVM.ApprovalManager_Id = Convert.ToInt32(_employee.Id));
                var setStatus = iLeaveRequestService.SetStatus(leaveRequestVM.Id, leaveRequestVM.Status_Id = Convert.ToInt32(1002));

                if (result)
                {
                    MessageBox.Show("Managerial Approved");
                }
            }
            else if (_employee.Role == "3")
            {
                if (string.IsNullOrWhiteSpace(_reqManager))
                {
                    MessageBox.Show("Not Approved from Manager. Please wait till employee get approved from manager first");
                }
                else
                {
                    leaveRequestVM.Id = Convert.ToInt32(_fromRequestId);
                    var result    = iLeaveRequestService.ApproveHrd(leaveRequestVM.Id, leaveRequestVM.ApprovalHrd_Id = Convert.ToInt32(_employee.Id));
                    var setStatus = iLeaveRequestService.SetStatus(leaveRequestVM.Id, leaveRequestVM.Status_Id = Convert.ToInt32(6));
                    if (result)
                    {
                        MessageBox.Show("Leave Accepted");
                    }
                }
            }
            else
            {
                MessageBox.Show("Error");
            }
        }