public List <Profesor> ObtenerProfesores()
 {
     return(Profesores
            .Include(entidad => entidad.Grupos)
            .ThenInclude(entidad => entidad.Materia)
            .Include(entidad => entidad.Grupos)
            .ThenInclude(entidad => entidad.MateriasEstudiantes)
            .ThenInclude(entidad => entidad.Estudiante)
            .OrderBy(entidad => entidad.Nombre).ToList());
 }
        public Profesor ObtenerProfesor(string cedula)
        {
            Profesor profesorActual = Profesores
                                      .Include(entidad => entidad.Grupos)
                                      .ThenInclude(entidad => entidad.Materia)
                                      .Include(entidad => entidad.Grupos)
                                      .ThenInclude(entidad => entidad.MateriasEstudiantes)
                                      .ThenInclude(entidad => entidad.Estudiante)
                                      .FirstOrDefault(entidad => entidad.Cedula == cedula);

            if (profesorActual is null)
            {
                throw new FenixExceptionNotFound("Este profesor no se encuentra registrado en la institución");
            }

            return(profesorActual);
        }