//private readonly ApplicationDbContext _context;

        //public LeaveTypesController(ApplicationDbContext context)
        //{
        //    _context = context;
        //}

        // GET: LeaveTypes
        public async Task <IActionResult> Index()
        {
            return(View(await leaveTypeRepository.GetIndex()));
        }