Exemple #1
0
 public int Agregar(T entity)
 {
     db.Entry(entity).State = EntityState.Added;
     return(db.SaveChanges());
 }