Ejemplo n.º 1
0
        public IActionResult StatsSearch(StatsLibraryViewModel model)
        {
            this.StartUp();
            var returnModel = this.statsUserService.SearchStats(model, this.userId);

            return(this.View("Index", returnModel));
        }
Ejemplo n.º 2
0
        public StatsLibraryViewModel PreparedPage(string userId)
        {
            var model       = new StatsLibraryViewModel();
            var returnModel = this.SearchStats(model, userId);

            return(returnModel);
        }
Ejemplo n.º 3
0
        public StatsLibraryViewModel SearchStats(StatsLibraryViewModel model, string userId)
        {
            model.Genres = this.GetGenre();
            var searchBook  = model.SearchBook;
            var returnModel = new StatsLibraryViewModel()
            {
                SearchBook = searchBook,
                Genres     = model.Genres,
                ChartGettenBookSinceSixМonth = this.ChartGettenBookSinceSixМonth(searchBook, userId),
                ChartAddedBookSinceSixМonth  = this.ChartAddedBookSinceSixМonth(searchBook, userId),
            };

            return(returnModel);
        }