// GET: LeaveRequests/Delete/5
        public IActionResult Delete(long?id)
        {
            if (id == null)
            {
                return(NotFound());
            }

            //var leaveRequest = await _context.LeaveRequests
            //    .Include(l => l.LeaveType)
            //    .FirstOrDefaultAsync(m => m.Id == id);
            var leaveRequest = leaveRequestRepository.GetDelete().FirstOrDefault(m => m.Id == id);

            if (leaveRequest == null)
            {
                return(NotFound());
            }

            return(View(leaveRequest));
        }