public ActionResult ApproveOrRejectFaculty(int id, int signal)
        {
            FacultyBlLayer.FacultyLogic facultyLogic = new FacultyBlLayer.FacultyLogic();
            var faculty = facultyLogic.GetFacultyDetailsById(id);

            if (signal == 1)
            {
                string status = "Approved";
                bool   delete = false;
                if (faculty != null)
                {
                    bool value = facultyLogic.EditFacultyDetails(faculty, status, delete);
                }
                return(RedirectToAction("FacultyRequest", "Admin"));
            }
            else
            {
                string status = "Rejected";
                bool   delete = true;
                if (faculty != null)
                {
                    bool value = facultyLogic.EditFacultyDetails(faculty, status, delete);
                }
                return(RedirectToAction("FacultyRequest", "Admin"));
            }
        }
        public ActionResult FacultyRequest()
        {
            FacultyBlLayer.FacultyLogic facultyLogic = new FacultyBlLayer.FacultyLogic();
            var facultyList = facultyLogic.GetFacultyStatus();

            if (facultyList.Count() > 0)
            {
                return(View(facultyList));
            }
            else
            {
                TempData["status"] = "false";
                return(View());
            }
        }