Exemplo n.º 1
0
        public async Task <ActionResult <IEnumerable <FamilyTreeDto> > > GetFamilyTreesByUserId(int id)
        {
            var result = await _service.GetFamilyTreesByUserIdAsync(id);

            return(new ObjectResult(new
            {
                FamilyTreeGetByUserId = _mapper.MapToDto <Entity.FamilyTree, FamilyTreeDto>(result)
            }));
        }