public IEnumerable <Posts> GetAllPosts() { var posts = iposts.GetAllPosts(); return(posts); }
public IActionResult Index() { var Posts = posts.GetAllPosts().OrderBy(e => e.LastModified); return(View(Posts)); }