private void ExecuteRemoveStudentCommand(object sender)
        {
            StudentBusinessLogic business = new StudentBusinessLogic();

            STUD_Students_Master student = business.GetAllStudents().Where(S => S.IsActive == true && S.Student_ID == CurrentStudent.StudentId).FirstOrDefault();

            student.IsActive = false;

            STUD_DetainingOrPromotions_Details DetOrPro = new STUD_DetainingOrPromotions_Details()
            {
                Student_ID           = CurrentStudent.StudentId,
                CurrentAcadDetail_ID = CurrentStudent.AccDetId,
                LastAcadDetail_ID    = CurrentStudent.AccDetId,
                Status_ID            = 3, //Status id for TC issue
                EnteredBy            = S360Model.S360Configuration.Instance.UserID,
                Login_ID             = S360Model.S360Configuration.Instance.LoginID
            };

            STUD_Student_TC TC = new STUD_Student_TC()
            {
                Student_ID  = CurrentStudent.StudentId,
                RegNo       = CurrentStudent.RegNo,
                IssuedOn    = DateTimeOffset.Now,
                IssuedBy_ID = S360Model.S360Configuration.Instance.UserID,
                Login_ID    = S360Model.S360Configuration.Instance.LoginID
            };

            business.UpdateStudent(student);
            business.SaveStudentDetainPromotion(DetOrPro);
            business.SaveIssueTC(TC);

            ExecuteClearAllCommand(null);
        }
 /// <summary>
 /// Method to insert value to STUD_Student_TC table
 /// </summary>
 /// <param name="TC"></param>
 public void SaveIssueTC(STUD_Student_TC TC)
 {
     _studentTCRepository.Insert(TC);
 }