public void GuardarAlumno()
 {
     try
     {
         using (var context = new MatriculasContext())
         {
             this.ID_USUARIO_REG       = 1;
             this.FLG_ESTADO           = "1";
             context.Entry(this).State = EntityState.Added;
             context.SaveChanges();
         }
     }
     catch (Exception E)
     {
         throw;
     }
 }
예제 #2
0
 public void Guardar()
 {
     try
     {
         using (var context = new MatriculasContext())
         {
             this.ID_TIPO_ASIGNATURA   = 1;
             this.ID_CICLO_PLAN        = 1;
             this.ID_USUARIO_REG       = 1;
             context.Entry(this).State = EntityState.Added;
             context.SaveChanges();
         }
     }
     catch (Exception E)
     {
         throw;
     }
 }