Exemplo n.º 1
0
        public StatsUserViewModel PreparedPage(string userId)
        {
            var model       = new StatsUserViewModel();
            var returnModel = this.SearchStats(model, userId);

            return(returnModel);
        }
Exemplo n.º 2
0
        public IActionResult StatsSearch(StatsUserViewModel model)
        {
            this.StartUp();
            var returnModel = this.statsUserService.SearchStats(model, this.userId);

            this.ViewData["message"] = this.userId;
            return(this.View("Index", returnModel));
        }
Exemplo n.º 3
0
        public StatsUserViewModel SearchStats(StatsUserViewModel model, string userId)
        {
            model.Genres = this.GetGenre();
            var searchBook  = model.SearchBook;
            var returnModel = new StatsUserViewModel()
            {
                SearchBook = searchBook,
                Genres     = model.Genres,
                ChartGettenBookSinceSixМonth = this.ChartGettenBookSinceSixМonth(searchBook, userId),
                ChartGenres = this.ChartGenres(searchBook, userId),
            };

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

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

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

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