示例#1
0
        public async Task <IActionResult> OnPost()
        {
            BlogSub blogSub = new BlogSub()
            {
                Subtitle = ViewModel.SubTitle,
                Details  = ViewModel.SubDetails,
                BlogId   = Id
            };

            _ = await _blogService.AddBlogSubAsync(blogSub);

            return(RedirectToPage());
        }