コード例 #1
0
        public IActionResult Index()
        {
            var model = new AdminHomeViewModel()
            {
                AuthorsCount    = _userData.GetAuthorsCount(),
                CategoriesCount = _courseData.GetCategoryCount(),
                CoursesCount    = _courseData.GetCourseCount(),
                EventCount      = _eventData.EventsCount(),
                NewsCount       = _newsData.NewsCount(),
                UserCount       = _userData.GetUserCount(),
            };

            return(View(model));
        }