protected void CreateAssociatedCustomer(Patient pat, AriClinicContext ctx) { Customer cus = new Customer() { FullName = pat.FullName, }; ctx.Add(cus); pat.Customer = cus; CntAriCli.CheckPolicy(pat, ctx); }