PostalAddress CreatePostalAddress(IModel m, string country, string street, string pocode, string city) { Uri contactUri = new Uri("semio:" + Guid.NewGuid().ToString()); PostalAddress c = m.CreateResource <PostalAddress>(contactUri); c.Country = country; c.StreetAddress = street; c.PostalCode = pocode; c.City = city; c.Commit(); return(c); }