public async Task <IActionResult> OnGetAsync(Guid postId)
        {
            var result = await authorization.IsGrantedAsync(blogPermissions.Post.UpdatePost);

            if (result)
            {
                CategoryList = await cateService.GetCateList();

                UpdatedPostDto = await postService.GetUpdatedPost(postId);

                return(Page());
            }
            else
            {
                return(RedirectToPage("/Error/AccessDenied", new { errorMesseage = "You don't have permission of Update Post!" }));
            }
        }