public void Remove(T entity, string deleteUser) { entity.DeleteBy = entity.UpdateBy = deleteUser; entity.DeletedAt = entity.UpdatedAt = DateTime.UtcNow; Uow.Entry(entity).State = EntityState.Modified; }
public void Update(Person person) { Uow.Persons.Attach(person); Uow.Entry(person).State = EntityState.Modified; }
public void Update(T entity, string updateUser) { entity.UpdateBy = updateUser; entity.UpdatedAt = DateTime.UtcNow; Uow.Entry(entity).State = EntityState.Modified; }