Esempio n. 1
0
        public CongressDefinition GetValidDefinition(IConnectionHandler connectionHandler, Guid congressId)
        {
            var congressDefinition = new CongressDefinitionBO().Get(connectionHandler, congressId);

            if (congressDefinition != null)
            {
                return(congressDefinition);
            }
            congressDefinition = new CongressDefinition {
                CongressId = congressId
            };
            if (!new CongressDefinitionBO().Insert(connectionHandler, congressDefinition))
            {
                throw new Exception(Resources.Congress.ErrorInSaveConfiguartion);
            }
            return(congressDefinition);
        }