public void AddComparisonResult(ComparisonResult comparisonResult) { using (var context = new MaatAppDBContext()) { context.Add <ComparisonResult>(comparisonResult); context.SaveChanges(); } }
public void AddTask(Task task) { using (var context = new MaatAppDBContext()) { context.Add <Task>(task); context.SaveChanges(); } }
public void AddFile(FileEntry file) { using (var context = new MaatAppDBContext()) { context.Add <FileEntry>(file); context.SaveChanges(); } }