Ejemplo n.º 1
0
        private void btnRejectLeave_Click(object sender, RoutedEventArgs e)
        {
            int  leaveid    = int.Parse(txtLeaveId.Text);
            bool isrejected = leaveBLL.RejectLeaveBLL(leaveid);

            txtLeaveId.Text = "";
            if (isrejected)
            {
                MessageBox.Show("Leave request for Id : " + leaveid + " Rejected successfully");

                // dgLeaveAproveReject.DataContext = leaveBLL.ListOfAllLeavesForAproveRejectBLL(EmployeeEntity.EmployeeID);
            }
            else
            {
                MessageBox.Show("Something went wrong with leave id : " + leaveid);
            }
        }