public void InsertContract(AirtimeBilling.Core.Entities.Contract contract) { using (var db = DbFactory.GetDataContext()) { var cont = new Contract(); cont.PopulateFromEntity(contract); db.Contracts.InsertOnSubmit(cont); db.SubmitChanges(); contract.Inserted(cont.ContractId); } }