public async Task <IActionResult> OnPostDelete([FromQuery][Required] int id) { if (ModelState.IsValid) { await _wordsRepository.Delete(id); } return(RedirectToPage("/Vocabulary")); }