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

            KapakTipi = await _context.KapakTipi.FirstOrDefaultAsync(m => m.ID == id);

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

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

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

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