Beispiel #1
0
 protected override void Dispose(bool disposing)
 {
     base.Dispose(disposing);
     if (disposing)
     {
         _context.Dispose();
     }
 }
        public ActionResult Index()
        {
            List <AchivmentModelView> achList;
            List <AchivmentModelView> newsList;

            achList  = CreateQuery(2, 10).ToList();
            newsList = CreateQuery(0, 100).ToList();

            ViewBag.AchivmentModels = achList;
            ViewBag.NewsModels      = newsList;

            baseContent.Dispose();

            return(View());
        }