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); } }
public void InsertOrUpdate(ProblemVO problem) { if (problem.ProblemID == default(int)) { _context.SetAdd(problem); } else { _context.SetModified(problem); } }
public void InsertOrUpdate(StepVO step) { if (step.StepID == default(int)) { _context.SetAdd(step); } else { _context.SetModified(step); } }