BolfTracker.Web.Controllers.PlayerController.Index C# (CSharp) Method

Index() public method

public Index ( ) : System.Web.Mvc.ActionResult
return System.Web.Mvc.ActionResult
        public ActionResult Index()
        {
            int month = DateTime.Today.Month;
            int year = DateTime.Today.Year;

            var playerStatistics = _playerService.GetPlayerStatistics(month, year);
            var playerCareerStatistics = _playerService.GetPlayerCareerStatistics();

            return View(new PlayersViewModel(month, year, playerStatistics, playerCareerStatistics));
        }