public async Task <IActionResult> PendingLeaveHistory(bool isDelete = false)
        {
            string user        = User.FindFirst("Index").Value;
            var    Currentuser = await _taskRepository.GetCurrentUser(user);

            ViewBag.photo = Currentuser.PhotoURL;
            int EmpId = Currentuser.EmpId;

            ViewBag.IsDelete = isDelete;
            var data = await _leaveRepository.GetAllPendingLeaveById(EmpId);

            return(View(data));
        }