Exemplo n.º 1
0
        public async Task <IActionResult> OnGet()
        {
            var allBlogs = (await _context.GetAllAsync());

            ArchiveModels = _commandHelper.GenerateBlogArchiveModel(allBlogs);
            return(Page());
        }
Exemplo n.º 2
0
        public async Task <IActionResult> OnGet()
        {
            var allBlogs = (await _context.GetAllAsync());

            Blog          = allBlogs.Where(x => x.Id == Id).FirstOrDefault();
            ArchiveModels = _commandHelper.GenerateBlogArchiveModel(allBlogs);
            return(Page());
        }