public void Update(T entity) { LeLeContext.Entry(entity).State = Microsoft.EntityFrameworkCore.EntityState.Modified; Save(); }