private MobiChat.Data.Customer GetCustomer(Guid externalCustomerGuid, MobiChat.Data.Service service, Country country, MobiChat.Data.MobileOperator mobileOperator, string msisdn) { MobiChat.Data.Customer customer = MobiChat.Data.Customer.CreateManager().Load(externalCustomerGuid); if (customer == null) { User user = new User(-1, Guid.NewGuid(), UserType.CreateManager().Load(1), UserStatus.Active, string.Empty, new byte[] { 0 }, DateTime.Now, DateTime.Now); user.Insert(); customer = new MobiChat.Data.Customer(-1, externalCustomerGuid, user, service, country, country.Language, mobileOperator, msisdn, string.Empty, DateTime.Now, DateTime.Now); customer.Insert(); } return(customer); }