private static void CreateStaticStatusPage() { var statusPage = new StatusPage() { Title = "Status Bar", Description = "System Generated Page", IsDisplayed = false }; statusPage.StatusPageGroupings.Add(new StatusPageGrouping() { Title = "Status Bar Group", Description = "System Generated, only one group allowed.", IsStatusBar = true }); database.StatusPages.Add(statusPage); database.SaveChanges(); }
public static void AddNewStatusPage(StatusPage newPage) { database.StatusPages.Add(newPage); GetAllStatusPages(); }
public static void DeleteStatusPage(StatusPage selectedItem) { database.StatusPages.Remove(selectedItem); GetAllStatusPages(); }