コード例 #1
0
 public IActionResult OnGet(int blogId)
 {
     deleteblog = blogdata.GetBlogById(blogId);
     if (deleteblog == null)
     {
         return(RedirectToPage("./Dashboard", new { urlname = HttpContext.Session.GetString("username") }));
     }
     return(Page());
 }