public ListViewModel(BlogEngineDAL dataaccess, int p) { PageNo = p; isHomePage = true; Posts = dataaccess.Posts(p - 1, postsCountInHomePage); LatestPost = dataaccess.Posts(0, postsCountInHomePage).FirstOrDefault(); TotalPosts = dataaccess.TotalPosts(); }
public ListViewModel(BlogEngineDAL dataaccess, int p) { Posts = dataaccess.Posts(p - 1, postsCountInHomePage); TotalPosts = dataaccess.TotalPosts(); }