public List <Enterprise1> getModelList() { List <Enterprise1> newList = new List <Enterprise1>(); foreach (Enterprise ent in GetOwner().Enterprises) { Enterprise1 ent1 = getEnterprise(ent); newList.Add(ent1); } return(newList); }
public Enterprise1 getEnterprise(Enterprise ent) { Enterprise1 newent = new Enterprise1(); newent.Address = ent.Address; // INTEGRATE newent.Contacts = ent.Contacts; //newent.Contacts = ent.Contacts; newent.Description = ent.Description; newent.Name = ent.Name; newent.Rating = ent.Rating; newent.EntId = ent.EntId; newent.Resources = ent.Resources; return(newent); }