public IActionResult Index() { PostDBAccesLayer postsDB = new PostDBAccesLayer(); var posts = postsDB.GetPosts(); HomeViewModel home = new HomeViewModel(); home.Posts = posts; return(View(home)); }
public IActionResult Index() { PostDBAccesLayer postsDB = new PostDBAccesLayer(); var posts = postsDB.GetPosts(); HomeViewModel home = new HomeViewModel(); home.Posts = posts; return(View(home)); }