public async Task <ActionResult <IEnumerable <RelationshipDto> > > GetRelationshipsByFamilyTreeId(int id) { var result = await _service.GetRelationshipsByFamilyTreeIdAsync(id); return(new ObjectResult(new { RelationshipsByFamilyTreeGet = _mapper.MapToDto <Relationship, RelationshipDto>(result) })); }