public async Task <IActionResult> GetOwnershipDocumentTypeById(int id) { var ownershipDocumentType = await _repo.GetOwnershipDocumentsTypeByIdAsync(id); var ownershipDocumentTypeToReturn = _mapper.Map <OwnershipDocumentTypeToReturnDto>(ownershipDocumentType); return(Ok(ownershipDocumentTypeToReturn)); }