// GET: LeaveRequests public IActionResult Index() { return(View(leaveRequestRepository.GetDetail())); }
//private readonly ApplicationDbContext _context; //public LeaveRequestsController(ApplicationDbContext context) //{ // _context = context; //} // GET: LeaveRequests public IActionResult Index() { // var applicationDbContext = _context.LeaveRequests.Include(l => l.LeaveType); return(View(leaveRequestRepository.GetDetail())); }