コード例 #1
0
        public ActionResult Index()
        {
            var countUser     = _applicationUserService.Count();
            var countMovie    = _moviesService.Count();
            var countFilm     = _filmService.Count();
            var countCategoty = _categoryMovieService.Count();

            ViewBag.CountUser     = countUser;
            ViewBag.CountMovie    = countMovie;
            ViewBag.CountFilm     = countFilm;
            ViewBag.CountCategory = countCategoty;

            return(View());
        }