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

            CollegeStructure = await _context.CollegeStructure.FirstOrDefaultAsync(m => m.CollegeStructureID == id);

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

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

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

            return(RedirectToPage("./Index"));
        }