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

            //var leaveType = await _context.LeaveTypes.FindAsync(id);
            var leaveType = leaveTypeRepository.GetEdit(id);

            if (leaveType == null)
            {
                return(NotFound());
            }
            return(View(leaveType));
        }