Exemplo n.º 1
0
        public IActionResult IndexCapacitaciones()
        {
            ReporteCapacitacionesViewModel reporte = new ReporteCapacitacionesViewModel();

            reporte.Inicio         = DateTime.Now;
            reporte.Fin            = DateTime.Now;
            reporte.capacitaciones = null;
            return(View(reporte));
        }
Exemplo n.º 2
0
        public async Task <IActionResult> IndexCapacitaciones(ReporteCapacitacionesViewModel model)
        {
            var inicio = model.Inicio;
            var fin    = model.Fin;

            //var reporte = await _analisisRepository.GetAnalisisReportesAsync(model.Inicio, model.Fin);
            ReporteCapacitacionesViewModel reporte = new ReporteCapacitacionesViewModel();

            reporte.Inicio         = inicio;
            reporte.Fin            = fin;
            reporte.capacitaciones = await _capacitacionesRepository.GetCapacitacionReportesAsync(model.Inicio, model.Fin);

            return(View(reporte));
        }