public bool Insert(string LookupName, string LookupFriendlyName) { LookupsDAC lookupsComponent = new LookupsDAC(); int LookupId = 0; return(lookupsComponent.InsertNewLookups(ref LookupId, LookupName, LookupFriendlyName)); }
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); }