public ResultEntity GetResultEntity(ResultInfoDTO source)
        {
            //if (source == null)
            //    return null;
            //ResultEntity target;

            //if (source.ResultId == null)
            //    target = new ResultEntity();
            //else
            //    target = DbContext.Set<ResultEntity>().Find(source.ResultId);

            //if (target == null)
            //    throw new EntityNotFoundException(nameof(ResultEntity), "Could not find Entity in Database.", source.ResultId);

            //return target;
            return(DefaultGet <ResultInfoDTO, ResultEntity>(source));
        }
        public ResultInfoDTO MapToResultInfoDTO(ResultEntity source, ResultInfoDTO target = null)
        {
            if (source == null)
            {
                return(null);
            }
            if (target == null)
            {
                target = new ResultInfoDTO();
            }

            MapToVersionInfoDTO(source, target);
            target.ResultId  = source.ResultId;
            target.SessionId = source.Session.SessionId;//MapToSessionInfoDTO(source.Session);

            return(target);
        }