Ejemplo n.º 1
0
        public IViewComponentResult Invoke()
        {
            var users = _userManager.Users;
            var model = new UsersViewComponentViewModel
            {
                UserCount = users.Count()
            };

            return(View(model));
        }
        public IViewComponentResult Invoke()
        {
            var categories = _category.GetCategories();
            var model      = new UsersViewComponentViewModel
            {
                UserCount = categories.Count()
            };

            return(View(model));
        }
Ejemplo n.º 3
0
        public IViewComponentResult Invoke()
        {
            var allphotos = _photos.GetAllPhotos();

            var model = new UsersViewComponentViewModel
            {
                UserCount = allphotos.Count()
            };

            return(View(model));
        }
Ejemplo n.º 4
0
        public IViewComponentResult Invoke()
        {
            var posts = _repository.GetPosts();

            var model = new UsersViewComponentViewModel
            {
                UserCount = posts.Count()
            };

            return(View(model));
        }