public async Task <bool> DeleteAsync(int objectId, string key) { if (!AllowDelete) { throw new SettingsException("Action is now allow"); } return(await _provider.Delete(objectId, key)); }