From aca986b18d66ae4a353e1c331f607e6690c0301a Mon Sep 17 00:00:00 2001 From: Thorsten Sommer Date: Tue, 12 Jul 2022 20:49:31 +0200 Subject: [PATCH] Added method to load single section --- I18N Commander/Processor/SectionProcessor.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/I18N Commander/Processor/SectionProcessor.cs b/I18N Commander/Processor/SectionProcessor.cs index a008a78..7be9030 100644 --- a/I18N Commander/Processor/SectionProcessor.cs +++ b/I18N Commander/Processor/SectionProcessor.cs @@ -135,4 +135,6 @@ public static class SectionProcessor await db.SaveChangesAsync(); return section; } + + public static Section GetSection(DataContext db, string sectionKey) => db.Sections.First(n => n.DataKey == sectionKey); } \ No newline at end of file