public T Update(T entity) { table.Attach(entity); _context.Entry(entity).State = EntityState.Modified; return(entity); }
public void Update(T obj) { table.Attach(obj); _context.Entry(obj).State = EntityState.Modified; }