Add blog index with pagination
This commit is contained in:
parent
68fa2cf1c7
commit
b8f371e3e8
5 changed files with 78 additions and 6 deletions
18
Website/ViewModels/BlogViewModel.cs
Normal file
18
Website/ViewModels/BlogViewModel.cs
Normal file
|
@ -0,0 +1,18 @@
|
|||
using System.Collections.Generic;
|
||||
|
||||
namespace Website.ViewModels
|
||||
{
|
||||
public class BlogViewModel
|
||||
{
|
||||
public BlogViewModel(IEnumerable<BlogPostViewModel> posts, int page, int maxPages)
|
||||
{
|
||||
Posts = posts;
|
||||
Page = page;
|
||||
MaxPages = maxPages;
|
||||
}
|
||||
|
||||
public IEnumerable<BlogPostViewModel> Posts { get; }
|
||||
public int Page { get; }
|
||||
public int MaxPages { get; }
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue