Beispiel #1
0
 public ActionResult Index()
 {
     using (var articleContext = new ArticleContext())
     {
         var viewModel = new LandingPageViewModel
         {
             TopArticles   = articleContext.GetTopArticles(),
             OtherArticles = articleContext.GetOtherArticles()
         };
         return(View(viewModel));
     }
 }