public IActionResult StatsSearch(StatsAdminViewModel model)
        {
            this.StartUp();
            var returnModel = this.statsAdminService.SearchStats(model, this.userId);

            return(this.View("Index", returnModel));
        }
Beispiel #2
0
        public StatsAdminViewModel PreparedPage(string userId)
        {
            var model       = new StatsAdminViewModel();
            var returnModel = this.SearchStats(model, userId);

            return(returnModel);
        }
Beispiel #3
0
        public StatsAdminViewModel SearchStats(StatsAdminViewModel model, string userId)
        {
            var searchUser  = model.SearchUser;
            var returnModel = new StatsAdminViewModel()
            {
                SearchUser                  = searchUser,
                ChartAddedUsers             = this.GetDataChartAddedUsers(searchUser),
                ChartAddedBookSinceSixМonth = this.ChartAddedBookSinceSixМonth(),
            };

            return(returnModel);
        }
        public IActionResult StatsSearch(StatsAdminViewModel model)
        {
            var startUp = this.StartUp();

            if (startUp != null)
            {
                return(startUp);
            }

            var returnModel = this.statsAdminService.SearchStats(model, this.userId);

            this.ViewData["message"] = this.userId;
            return(this.View("Stats", returnModel));
        }