Beispiel #1
0
        public InstructorCLS mostrarInstructor()
        {
            InstructorCLS oInstructorCLS = new InstructorCLS();

            oInstructorCLS.nombre          = "Cristian";
            oInstructorCLS.apellido        = "Bustamante";
            oInstructorCLS.SegundoApellido = "Araya";
            return(oInstructorCLS);
        }
Beispiel #2
0
        public List <InstructorCLS> mostrarListaInstructor()
        {
            List <InstructorCLS> lista          = new List <InstructorCLS>();
            InstructorCLS        oInstructorCLS = new InstructorCLS();

            oInstructorCLS.nombre          = "Cristian";
            oInstructorCLS.apellido        = "Bustamante";
            oInstructorCLS.SegundoApellido = "Araya";
            lista.Add(oInstructorCLS);
            oInstructorCLS                 = new InstructorCLS();
            oInstructorCLS.nombre          = "jennie";
            oInstructorCLS.apellido        = "kim";
            oInstructorCLS.SegundoApellido = "Cheongdam-dong";
            lista.Add(oInstructorCLS);
            return(lista);
        }
Beispiel #3
0
        public IActionResult PruebaLista()
        {
            List <InstructorCLS> lista          = new List <InstructorCLS>();
            InstructorCLS        oInstructorCLS = new InstructorCLS();

            oInstructorCLS.nombre          = "Cristian";
            oInstructorCLS.apellido        = "Bustamante";
            oInstructorCLS.SegundoApellido = "Araya";
            lista.Add(oInstructorCLS);
            oInstructorCLS                 = new InstructorCLS();
            oInstructorCLS.nombre          = "jennie";
            oInstructorCLS.apellido        = "kim";
            oInstructorCLS.SegundoApellido = "Cheongdam-dong";
            lista.Add(oInstructorCLS);

            return(View(lista));
        }
        public IActionResult PruebaLista()
        {
            List <InstructorCLS> lista         = new List <InstructorCLS>();
            InstructorCLS        instructorCLS = new InstructorCLS
            {
                nombre    = "Kevin",
                apPaterno = "Barrera",
                apMaterno = "Reyes"
            };

            lista.Add(instructorCLS);

            instructorCLS = new InstructorCLS
            {
                nombre    = "Felipe",
                apPaterno = "Larios",
                apMaterno = "López"
            };
            lista.Add(instructorCLS);
            return(View(lista));
        }
Beispiel #5
0
 public string saludo(InstructorCLS oInstructorCLS)
 {
     return("hola " + oInstructorCLS.nombre + " " + oInstructorCLS.apellido + " " + oInstructorCLS.SegundoApellido);
 }