public ReporteActividadesIndexViewModel GetReporteActividades(DateTime inicio, DateTime fin)
        {
            var modelToReturn = new ReporteActividadesIndexViewModel();
            var actaDetalles  = _actasEU.GetDetalleInRange(inicio, fin).ToList();

            foreach (var detalle in actaDetalles)
            {
                var item = new ReporteActividadViewModel()
                {
                    CedulaIdentidad = detalle.Acta.Estudiante.CedulaIdentidad,
                    Estudiante      = $"{detalle.Acta.Estudiante.Apellido}, {detalle.Acta.Estudiante.Nombre}",
                    Horas           = detalle.HorasExtensionRealizadas,
                    Caracter        = detalle.SubCategoria == null ? detalle.Categoria.Caracter : detalle.SubCategoria.Caracter,
                    LugarTutor      = detalle.LugarProfesorTutor
                };
                modelToReturn.Actividades.Add(item);
            }
            return(modelToReturn);
        }
Example #2
0
        public IActionResult Actividades()
        {
            var viewModel = new ReporteActividadesIndexViewModel();

            return(View(viewModel));
        }