Esempio n. 1
0
        public bool Insert(int LookupId, int LanguageId, int RefId, string LookupValue, string LookupValueDescription)
        {
            LookupLanguagesDAC lookuplanguagesComponent = new LookupLanguagesDAC();
            int LookupLanguageId = 0;

            return(lookuplanguagesComponent.InsertNewLookupLanguages(ref LookupLanguageId, LookupId, LanguageId, RefId, LookupValue, LookupValueDescription));
        }
Esempio n. 2
0
        public bool Insert(LookupLanguages lookuplanguages)
        {
            int autonumber = 0;
            LookupLanguagesDAC lookuplanguagesComponent = new LookupLanguagesDAC();
            bool endedSuccessfuly = lookuplanguagesComponent.InsertNewLookupLanguages(ref autonumber, lookuplanguages.LookupId, lookuplanguages.LanguageId, lookuplanguages.RefId, lookuplanguages.LookupValue, lookuplanguages.LookupValueDescription);

            if (endedSuccessfuly)
            {
                lookuplanguages.LookupLanguageId = autonumber;
            }
            return(endedSuccessfuly);
        }