public bool Insert(string SponsorName, int ConferenceId, string SponsorType, string SponsorImage, int LanguageID, int SponsorParentID) { SponsorslanguageDAC sponsorslanguageComponent = new SponsorslanguageDAC(); int SponsorId = 0; return(sponsorslanguageComponent.InsertNewSponsorslanguage(ref SponsorId, SponsorName, ConferenceId, SponsorType, SponsorImage, LanguageID, SponsorParentID)); }
public bool Insert(Sponsorslanguage sponsorslanguage) { int autonumber = 0; SponsorslanguageDAC sponsorslanguageComponent = new SponsorslanguageDAC(); bool endedSuccessfuly = sponsorslanguageComponent.InsertNewSponsorslanguage(ref autonumber, sponsorslanguage.SponsorName, sponsorslanguage.ConferenceId, sponsorslanguage.SponsorType, sponsorslanguage.SponsorImage, sponsorslanguage.LanguageID, sponsorslanguage.SponsorParentID); if (endedSuccessfuly) { sponsorslanguage.SponsorId = autonumber; } return(endedSuccessfuly); }