public async Task <IActionResult> RejectedLeave() { string user = User.FindFirst("Index").Value; var Currentuser = await _taskRepository.GetCurrentUser(user); ViewBag.photo = Currentuser.PhotoURL; int EmpId = Currentuser.EmpId; var data = await _leaveRepository.GetRejectedLeaveById(EmpId); return(View(data)); }