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

            Psycholog = await _context.Psycholog.SingleOrDefaultAsync(m => m.Id == id);

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

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

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

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