public static void ReplacementFeedback(CultureInfo ci, string translationWrong, string translationRight) { if (string.IsNullOrWhiteSpace(translationWrong)) throw new ArgumentNullException(translationWrong); if (string.IsNullOrWhiteSpace(translationRight)) throw new ArgumentNullException(translationRight); if (!Database.Query<TranslationReplacementEntity>().Any(a => a.CultureInfo == ci.ToCultureInfoEntity() && a.WrongTranslation == translationWrong)) using (OperationLogic.AllowSave<TranslationReplacementEntity>()) new TranslationReplacementEntity { CultureInfo = ci.ToCultureInfoEntity(), WrongTranslation = translationWrong, RightTranslation = translationRight, }.Save(); }