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

            Yorum = await _context.Yorum
                    .Include(y => y.Kitap).FirstOrDefaultAsync(m => m.ID == id);

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

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

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

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

            Yorum = await _context.Yorum
                    .Include(y => y.Kitap).FirstOrDefaultAsync(m => m.ID == id);

            if (Yorum == null)
            {
                return(NotFound());
            }
            ViewData["KitapID"] = new SelectList(_context.Kitap, "ID", "ID");
            return(Page());
        }