Exemple #1
0
        internal static bool CopyrightCodeExists(Build_DTO dto)
        {
            Copyright_BSO        bso    = new Copyright_BSO();
            Copyright_DTO_Create dtoCpr = bso.Read(dto.CprCode);

            return(dtoCpr.CprCode != null);
        }
Exemple #2
0
        /// <summary>
        /// The main language must be represented in one and only one dimension
        /// </summary>
        /// <param name="dto"></param>
        /// <returns></returns>
        internal static bool MainLanguageRepresented(Build_DTO dto)
        {
            var query = from vars in dto.DimensionList where vars.LngIsoCode == dto.matrixDto.LngIsoCode select vars;

            return(query.Count() == 1);
        }