public async Task DeleteAsync(int entityId) { using (var context = _contextCreator()) { _repository = new ConnectedRepository <Customer>(context); await _repository.DeleteAsync(entityId); } }