public void UpdateCustomerUsingSTE(Model.STE.Customer customer) { using (var ctx = new OrderIT.Model.STE.OrderITEntities()) { ctx.Companies.ApplyChanges(customer); ctx.SaveChanges(); } }
/*ICustomerSTEService Interface*/ public int CreateCustomerUsingSTE(Model.STE.Customer customer) { using (var ctx = new OrderIT.Model.STE.OrderITEntities()) { ctx.Companies.ApplyChanges(customer); ctx.SaveChanges(); return(customer.CompanyId); } }