public static CBB.ExceptionHelper.OperationResult AddDisabler(String fromMember, String toMember) { Relation.Disabler obj = new Relation.Disabler(); obj.FromMember = fromMember; obj.ToMember = toMember; obj.CreatedTime = DateTime.Now; return Relation.RelationProvider.AddRelation(obj, RelationOperationType.OnlyOneTimes); }
public static CBB.ExceptionHelper.OperationResult DeleteDisabler(String fromMember, String toMember) { Relation.Disabler obj = new Relation.Disabler(); obj.FromMember = fromMember; obj.ToMember = toMember; obj.CreatedTime = DateTime.Now; return Relation.RelationProvider.DeleteRelation(obj); }