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