Пример #1
0
        public virtual async Task <IActionResult> BlogPosts(int?filterByBlogPostId)
        {
            if (!await _permissionService.AuthorizeAsync(StandardPermissionProvider.ManageBlog))
            {
                return(AccessDeniedView());
            }

            //prepare model
            var model = await _blogModelFactory.PrepareBlogContentModelAsync(new BlogContentModel(), filterByBlogPostId);

            return(View(model));
        }