public ViewModelLocator()
 {
     JoueursViewModel     = new JoueursViewModel();
     ClubsViewModel       = new ClubsViewModel();
     SexesViewModel       = new SexesViewModel();
     TabViewModel         = new TabViewModel();
     SeriesViewModel      = new SeriesViewModel();
     ClassementsViewModel = new ClassementsViewModel();
     EquipesViewModel     = new EquipesViewModel();
     MatchsViewModel      = new MatchsViewModel();
     TableauBordViewModel = new TableauBordViewModel();
 }
        public IActionResult Index(TableauBordViewModel vm)
        {
            try
            {
                if (vm.ReturnUrl == null)
                {
                    vm.ReturnUrl = CoronaOutWebUrl;
                }

                return(Redirect(vm.ReturnUrl));
            }
            catch (Exception ex)
            {
                ErrorViewModel vme = new ErrorViewModel(ex.Message);
                return(View("Error", vme));
            }
        }
        public IActionResult Index(string returnUrl)
        {
            try
            {
                if (returnUrl == null)
                {
                    returnUrl = CoronaOutWebUrl;
                }

                TableauBordViewModel vm = new TableauBordViewModel();

                vm.UserNames = userManager.Users.Select(u => u.UserName).ToList();
                vm.RoleNames = roleManager.Roles.Select(r => r.Name).ToList();
                vm.ReturnUrl = returnUrl;

                return(View(vm));
            }
            catch (Exception ex)
            {
                ErrorViewModel vme = new ErrorViewModel(ex.Message);
                return(View("Error", vme));
            }
        }