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

            GivenName = await _context.GivenNames.FirstOrDefaultAsync(m => m.Id == id);

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

            GivenName = await _context.GivenNames.FindAsync(id);

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

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