//private readonly ApplicationDbContext _context; //public BonusesController(ApplicationDbContext context) //{ // _context = context; //} // GET: Bonuses public IActionResult Index() { // var applicationDbContext = _context.Bonuses.Include(b => b.BonusType).Include(b => b.EmployeeInfo); return(View(bonusRepository.GetDetail())); }