public ActionResult Mayores(int?numeroCuenta) { ViewBag.NumeroCuenta = new SelectList(cuentasContablesManager.GetAllCuentasContables(), "Numero", "NombreDespliegue"); var reporte = numeroCuenta != null?reportesManager.GetReporteMayores(numeroCuenta.Value) : new List <ReporteMayores>(); return(View(reporte)); }