Example #1
0
        public static FigurineSearchFilterOptions BuildFigurineSearchFilterOptions(FigurineFilterOptionsViewModel figurineFilterOptions)
        {
            if (figurineFilterOptions == null)
            {
                return(new FigurineSearchFilterOptions());
            }
            var figurineSearchFilterOptions = new FigurineSearchFilterOptions
            {
                SportId  = figurineFilterOptions.SportId,
                LeagueId = figurineFilterOptions.LeagueId,
                PersonId = figurineFilterOptions.PersonId,
                TeamId   = figurineFilterOptions.TeamId,
                HOFFlag  = figurineFilterOptions.HOFFlag
            };

            return(figurineSearchFilterOptions);
        }
Example #2
0
        public IActionResult Index(FigurineFilterOptionsViewModel filterOptions)
        {
            var vm = _figurineIndexModelService.Build(filterOptions);

            return(View(vm));
        }