/// <summary>
        ///     Retrieves a collection of <see cref="!:CostCodeModel" /> instances.
        /// </summary>
        /// <param name="selcoSpIdId">
        ///     The value which identifies the <see cref="!:CostCodeModel" /> instances to be returned.
        /// </param>
        /// <returns>
        ///     The <see cref="!:CostCodeModel" /> instances that match the specified <paramref name="selcoSpIdId" />.
        /// </returns>
        public static IEnumerable <Consensus.Finance.CostCode> FetchAllBySelcoSpIdId(System.String selcoSpIdId)
        {
            ConsensusSite site = ConsensusDomain.Configuration[ConsensusDomain.Configuration.DefaultSite];

            return(CostCode.FetchAllBySelcoSpIdId(site, selcoSpIdId));
        }
        public static System.String GetTableName()
        {
            ConsensusSite site = ConsensusDomain.Configuration[ConsensusDomain.Configuration.DefaultSite];

            return(CostCode.GetTableName(site));
        }
        /// <summary>
        ///     Retrieves a specific <see cref="!:CostCodeModel" /> instance.
        /// </summary>
        /// <param name="id">
        ///     The unique value which distinctly identifies the <see cref="!:CostCodeModel" /> instance to be returned.
        /// </param>
        /// <returns>
        ///     The <see cref="!:CostCodeModel" /> instance that matches the specified <paramref name="id" />; or null, if no matching instance can be found.
        /// </returns>
        public static Consensus.Finance.CostCode FetchById(System.String id)
        {
            ConsensusSite site = ConsensusDomain.Configuration[ConsensusDomain.Configuration.DefaultSite];

            return(CostCode.FetchById(site, id));
        }
        /// <summary>
        ///     Retrieves all instances of the <see cref="!:CostCodeModel" /> class.
        /// </summary>
        /// <returns>
        ///     An enumerable collection of <see cref="!:CostCodeModel" /> instances.
        /// </returns>
        public static IEnumerable <Consensus.Finance.CostCode> FetchAll()
        {
            ConsensusSite site = ConsensusDomain.Configuration[ConsensusDomain.Configuration.DefaultSite];

            return(CostCode.FetchAll(site));
        }
        /// <summary>
        ///     Creates a new <see cref="!:CostCodeModel" /> instance.
        /// </summary>
        /// <returns>
        ///     A newly instantiated <see cref="!:CostCodeModel" /> instance.
        /// </returns>
        public static Consensus.Finance.CostCode Create()
        {
            ConsensusSite site = ConsensusDomain.Configuration[ConsensusDomain.Configuration.DefaultSite];

            return(CostCode.Create(site));
        }
        /// <summary>
        ///     Checks if Country's name or code exist.
        /// </summary>
        /// <param name="code">
        ///     Name of the country.
        /// </param>
        /// <param name="sellingCompId">
        ///     Code of the country.
        /// </param>
        /// <param name="costCodeId">
        ///     Id of the country.
        /// </param>
        /// <returns>
        ///     Whether country's name or code exist in database.
        /// </returns>
        public static System.Boolean CheckIfCodeExist(System.String code, System.String sellingCompId, System.String costCodeId)
        {
            ConsensusSite site = ConsensusDomain.Configuration[ConsensusDomain.Configuration.DefaultSite];

            return(CostCode.CheckIfCodeExist(site, code, sellingCompId, costCodeId));
        }