public void AddOrganization(CustomerEntity organization) { var org = new OrganizationModel(); org.Load(organization); this.Organizations.Add(org); }
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); }