Server Error in '/' Application.

O dicionário de parâmetros contém uma entrada nula para o parâmetro 'ano' de tipo que não permite valor anulável 'System.Int32' para o método 'System.Web.Mvc.ActionResult Index(Int32, Int32)' em 'ValeSorte.Web.UI.Controllers.ResultadosController'. Um parâmetro opcional deve ser um tipo de referência, um tipo que permite valor anulável ou declarado como opcional.
Parameter name: parameters

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.ArgumentException: O dicionário de parâmetros contém uma entrada nula para o parâmetro 'ano' de tipo que não permite valor anulável 'System.Int32' para o método 'System.Web.Mvc.ActionResult Index(Int32, Int32)' em 'ValeSorte.Web.UI.Controllers.ResultadosController'. Um parâmetro opcional deve ser um tipo de referência, um tipo que permite valor anulável ou declarado como opcional.
Parameter name: parameters

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:


[ArgumentException: O dicionário de parâmetros contém uma entrada nula para o parâmetro 'ano' de tipo que não permite valor anulável 'System.Int32' para o método 'System.Web.Mvc.ActionResult Index(Int32, Int32)' em 'ValeSorte.Web.UI.Controllers.ResultadosController'. Um parâmetro opcional deve ser um tipo de referência, um tipo que permite valor anulável ou declarado como opcional.
Parameter name: parameters]
   ValeSorte.Web.UI.MvcApplication.Application_Error(Object sender, EventArgs e) in D:\Projetos\Projetos - Sistemas\Vale Sorte\vale-sorte\ValeSorte.Web.UI\Global.asax.cs:100
   System.Web.HttpApplication.RaiseOnError() +211


Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.7.4087.0