public async Task <IActionResult> OnGetAsync(int?id)
        {
            if (id == null)
            {
                return(NotFound());
            }

            Fees = await _context.Fees
                   .Include(f => f.Programs).FirstOrDefaultAsync(m => m.FeesID == id);

            if (Fees == null)
            {
                return(NotFound());
            }
            return(Page());
        }
        public async Task <IActionResult> OnPostAsync(int?id)
        {
            if (id == null)
            {
                return(NotFound());
            }

            Fees = await _context.Fees.FindAsync(id);

            if (Fees != null)
            {
                _context.Fees.Remove(Fees);
                await _context.SaveChangesAsync();
            }

            return(RedirectToPage("./Index"));
        }
        public async Task <IActionResult> OnGetAsync(int?id)
        {
            if (id == null)
            {
                return(NotFound());
            }

            Fees = await _context.Fees
                   .Include(f => f.Programs).FirstOrDefaultAsync(m => m.FeesID == id);

            if (Fees == null)
            {
                return(NotFound());
            }
            ViewData["ProgramsID"] = new SelectList(_context.Programs, "ProgramsID", "ProgramsID");
            return(Page());
        }