예제 #1
0
        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)
            }));
        }