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) })); }