public void Upate(T entity)
 {
     db.Entry(entity).State = EntityState.Modified;
     db.SaveChanges();
 }