Exemplo n.º 1
0
 public virtual bool Add(T entity)
 {
     db.Set <T>().Add(entity);
     return(db.SaveChanges() > 0);
 }