Added method to load single section

This commit is contained in:
Thorsten Sommer 2022-07-12 20:49:31 +02:00
parent 4767aae217
commit aca986b18d
Signed by: tsommer
GPG Key ID: 371BBA77A02C0108

View File

@ -135,4 +135,6 @@ public static class SectionProcessor
await db.SaveChangesAsync(); await db.SaveChangesAsync();
return section; return section;
} }
public static Section GetSection(DataContext db, string sectionKey) => db.Sections.First(n => n.DataKey == sectionKey);
} }