Esempio n. 1
0
 public void InsertOrUpdateGraph(ProblemVO customerGraph)
 {
     if (customerGraph.State == State.Added)
     {
         _context.Problems.Add(customerGraph);
     }
     else
     {
         _context.Problems.Add(customerGraph);
         _context.ApplyStateChanges();
     }
 }
 public void InsertOrUpdateGraph(SubCategoryVO customerGraph)
 {
     if (customerGraph.State == State.Added)
     {
         _context.SubCategories.Add(customerGraph);
     }
     else
     {
         _context.SubCategories.Add(customerGraph);
         _context.ApplyStateChanges();
     }
 }
 public void InsertOrUpdateGraph(SolutionVO customerGraph)
 {
     if (customerGraph.State == State.Added)
     {
         _context.Solutions.Add(customerGraph);
     }
     else
     {
         _context.Solutions.Add(customerGraph);
         _context.ApplyStateChanges();
     }
 }