public bool Put(c_DatosAlumnos al, int id)
 {
     using (CursoEscolarEntities contexto = new CursoEscolarEntities())
     {
         Alumno editAlumno = (from Alum in contexto.Alumno
                              where Alum.Al_Id == id
                              select Alum).FirstOrDefault();
         editAlumno.Al_Nombre     = al.Nombre;
         editAlumno.Al_Apellido   = al.Apellidos;
         editAlumno.Al_Carrera_Id = al.Carrera;
         contexto.SaveChanges();
     }
     return(true);
 }
        public bool Post(c_DatosAlumnos al)
        {
            Boolean guardar = false;

            using (CursoEscolarEntities contexto = new CursoEscolarEntities())
            {
                Alumno alumno = new Alumno
                {
                    Al_Nombre     = al.Nombre,
                    Al_Apellido   = al.Apellidos,
                    Al_Carrera_Id = al.Carrera,
                    Al_Semestre   = al.Semestres
                };
                contexto.Alumno.Add(alumno);
                contexto.SaveChanges();
                guardar = true;
            }
            return(guardar);
        }