public void InsertOrUpdate(SubCategoryVO category)
 {
     if (category.SubCategoryID == default(int))
     {
         _context.SetAdd(category);
     }
     else
     {
         _context.SetModified(category);
     }
 }
 public void InsertOrUpdate(SolutionVO solution)
 {
     if (solution.SolutionId == default(int))
     {
         _context.SetAdd(solution);
     }
     else
     {
         _context.SetModified(solution);
     }
 }
Esempio n. 3
0
 public void InsertOrUpdate(ProblemVO problem)
 {
     if (problem.ProblemID == default(int))
     {
         _context.SetAdd(problem);
     }
     else
     {
         _context.SetModified(problem);
     }
 }
Esempio n. 4
0
 public void InsertOrUpdate(StepVO step)
 {
     if (step.StepID == default(int))
     {
         _context.SetAdd(step);
     }
     else
     {
         _context.SetModified(step);
     }
 }