public async Task <IActionResult> DeleteConfirmed(long id)
        {
            //var leaveRequest = await _context.LeaveRequests.FindAsync(id);
            //_context.LeaveRequests.Remove(leaveRequest);
            //await _context.SaveChangesAsync();
            var leaveRequest = leaveRequestRepository.GetDeleteList(id);
            await leaveRequestRepository.Delete(leaveRequest);

            return(RedirectToAction(nameof(Index)));
        }