示例#1
0
        public bool Insert(string LookupName, string LookupFriendlyName)
        {
            LookupsDAC lookupsComponent = new LookupsDAC();
            int        LookupId         = 0;

            return(lookupsComponent.InsertNewLookups(ref LookupId, LookupName, LookupFriendlyName));
        }
示例#2
0
        public bool Insert(Lookups lookups)
        {
            int        autonumber       = 0;
            LookupsDAC lookupsComponent = new LookupsDAC();
            bool       endedSuccessfuly = lookupsComponent.InsertNewLookups(ref autonumber, lookups.LookupName, lookups.LookupFriendlyName);

            if (endedSuccessfuly)
            {
                lookups.LookupId = autonumber;
            }
            return(endedSuccessfuly);
        }