Пример #1
0
        public IEnumerable<FormModel> GetFormInfo(string id)
        {
            Asistentes_TutoresEntities datos = new Asistentes_TutoresEntities();
            var lista = datos.SP_GETFormInfo(Int32.Parse(id));
            List<FormModel> estudiantes = new List<FormModel>();
            foreach (var est in lista)
            {
                FormModel estudiante = new FormModel(est.Id_Formulario.ToString(), est.Nombre, est.Carne, est.Email, est.Telefono,
                 est.Cedula, est.BankName, est.Cuenta, est.ImageBankPath, est.Horas.ToString(), est.CorreoProfesor, est.FuncionarioName,
                 est.Ponderado, est.PonderadoImagePath, est.NotaCurso, est.Modalidad, est.Curso);
                estudiantes.Add(estudiante);

            }
            return estudiantes;
        }