コード例 #1
0
 // GET: LeaveRequests
 public IActionResult Index()
 {
     return(View(leaveRequestRepository.GetDetail()));
 }
コード例 #2
0
        //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()));
        }