Ejemplo n.º 1
0
        public void GetStarTutorialses()
        {
            TutorialsService  tutorialsCRUD = new TutorialsService();
            IList <Tutorials> tutorialses   = tutorialsCRUD.GetStarTutorialses();

            Assert.IsNotNull(tutorialses);
        }
Ejemplo n.º 2
0
        public ActionResult Index()
        {
            IList <Tutorials> tutorialses = tutorialsCRUD.GetStarTutorialses();
            IList <Product>   products    = productCRUD.GetStarProducts();
            IList <Article>   articles    = articleCRUD.GetStarArticles();
            HomeViewModel     hv          = new HomeViewModel();

            hv.products  = products;
            hv.tutorials = tutorialses;
            hv.articles  = articles;
            logger.Info("index");
            return(View(hv));
        }