public async Task <bool> DeleteAsync(TRoot aggregate) { var result = await _delete.DeleteAsync(aggregate); if (result) { await _bus.Emit(new DomainDeleted <TRoot>(aggregate)); } return(result); }
public async Task RemoveAsync(T model) { await deleter.DeleteAsync(model); OnChange?.Invoke(this, EventArgs.Empty); }