public async Task <int> InsertStringResourceAsync(LocaleStringResource resource) { var result = await _repository.InsertAsync(resource); if (result > 0) { RemoveCachedLanguage(resource.LanguageId); } return(result); }