public Contracts.GenericListResult <Contracts.PersonRelationship> GetPersonRelationships(int id) { Contracts.GenericListResult <Contracts.PersonRelationship> list = new Contracts.GenericListResult <Contracts.PersonRelationship>(); Contracts.PersonRelationshipMapper mapper = new Contracts.PersonRelationshipMapper(); RelationshipCollection relationships = new RelationshipCollection(id); list.Items = new List <Contracts.PersonRelationship>(); list.Total = relationships.Count; list.Max = list.Total; list.Start = 0; foreach (Relationship relationship in relationships) { list.Items.Add(mapper.FromArena(relationship)); } return(list); }
public Contracts.GenericListResult<Contracts.PersonRelationship> GetPersonRelationships(int id) { Contracts.GenericListResult<Contracts.PersonRelationship> list = new Contracts.GenericListResult<Contracts.PersonRelationship>(); Contracts.PersonRelationshipMapper mapper = new Contracts.PersonRelationshipMapper(); RelationshipCollection relationships = new RelationshipCollection(id); list.Items = new List<Contracts.PersonRelationship>(); list.Total = relationships.Count; list.Max = list.Total; list.Start = 0; foreach (Relationship relationship in relationships) { list.Items.Add(mapper.FromArena(relationship)); } return list; }