Added method to load single section
This commit is contained in:
1 file changed
+2
@@ -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);
|
||||||
}
|
}
|
||||||
Reference in new issue
Block a user