public InstructorCLS mostrarInstructor() { InstructorCLS oInstructorCLS = new InstructorCLS(); oInstructorCLS.nombre = "Cristian"; oInstructorCLS.apellido = "Bustamante"; oInstructorCLS.SegundoApellido = "Araya"; return(oInstructorCLS); }
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); }
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)); }
public string saludo(InstructorCLS oInstructorCLS) { return("hola " + oInstructorCLS.nombre + " " + oInstructorCLS.apellido + " " + oInstructorCLS.SegundoApellido); }