Пример #1
0
 public bool AddSectionPanel(SectionPanel panel)
 {
     using (var dbContext = new ApplicationDbContext())
     {
         return(AddSectionPanel(dbContext, panel));
     }
 }
Пример #2
0
 public bool AddSectionPanel(SectionPanel panel)
 {
     using (var dbContext = new ApplicationDbContext())
     {
         dbContext.SectionPanels.Add(panel);
         dbContext.SaveChanges();
         return(true);
     }
 }
Пример #3
0
 private bool AddSectionPanel(ApplicationDbContext dbContext, SectionPanel panel)
 {
     dbContext.SectionPanels.Add(panel);
     dbContext.SaveChanges();
     return(true);
 }