示例#1
0
        public void AddOrganization(CustomerEntity organization)
        {
            var org = new OrganizationModel();

            org.Load(organization);
            this.Organizations.Add(org);
        }
示例#2
0
        public static IEnumerable <OrganizationModel> Load(IEnumerable <CustomerEntity> entities)
        {
            var result = new List <OrganizationModel>();

            foreach (var item in entities)
            {
                var model = new OrganizationModel();
                model.Load(item);
                result.Add(model);
            }
            return(result);
        }