예제 #1
0
 public bool Add(Estudiante model)
 {
     try
     {
         _estudianteDbContext.Add(model);
         _estudianteDbContext.SaveChanges();
     }
     catch (Exception)
     {
         return(false);
     }
     return(true);
 }
예제 #2
0
 public bool Add(Materia model)
 {
     try
     {
         _t_DbContext.Add(model);
         _t_DbContext.SaveChanges();
     }
     catch (Exception)
     {
         return(false);
     }
     return(true);
 }