public async Task <IActionResult> OnGet() { _ = await _blogService.DeleteBlogAsync(Id); TempData["Success"] = "You have successfully deleted the Blog"; return(RedirectToPage("/Admin/Blogs")); }
public async Task <IActionResult> OnGet() { _ = await _blogService.DeleteBlogAsync(Id); TempData["Success"] = "You have successfully deleted the Blog"; return(RedirectToPage("/Admin/Blogs")); }