public IHttpActionResult Get(Guid id) { var item = _clashRepository.Find(id); if (item == null) { return(NotFound()); } var parentclash = string.IsNullOrWhiteSpace(item.ParentExternalidentifier) ? null : _clashRepository.FindByExternal(item.ParentExternalidentifier)?.FirstOrDefault(); return(Ok(_mapper.Map <ClashModel>(Tuple.Create(item, parentclash)))); }