Ejemplo n.º 1
0
        public async Task <ActionResult <FamilyTreeDto> > DeleteFamilyTree(int id)
        {
            var result = await _service.DeleteFamilyTreeAsync(id);

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