public BlockDTO GetBlockById(Guid blockID) { var type = _blockingRepository.GetBlockById(blockID); if (type == null) { throw new NotFoundException("Block with that ID does not exist"); } return(mapper.Map <BlockDTO>(type)); }
public BlockDto GetBlockById(Guid ID) { var b = blockingRepository1.GetBlockById(ID); if (b == null) { throw new UserException("Block does not exist, write ID again!"); } return(mapper1.Map <BlockDto>(b)); }