Added method to load single section
This commit is contained in:
parent
4767aae217
commit
aca986b18d
@ -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);
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user