public static void update(iPolicyData policy) { lock (Lock) { context.policies.Update(policy); context.SaveChanges(); } }
public static void create(iPolicyData policy) { lock (Lock) { context.policies.Add(policy); context.SaveChanges(); } }
public static void Delete(iPolicyData policy, bool propogate = false) { lock (Lock) { context.policies.Remove(policy); context.SaveChanges(); } }
public iPolicy(iPolicyData policy) { //todo }