public static void AddEdge(EdgeM edge) { if (edge == null) { return; } db.Edges.Add(edge); db.SaveChanges(); }
public static void RemoveEdge(EdgeM edge) { if (edge == null) { return; } db.Edges.Remove(edge); db.SaveChanges(); }