public virtual bool Update(T info) { db.Entry <T>(info).State = EntityState.Modified; return(db.SaveChanges() > 0); }