public bool Insert( string SponsorName, int ConferenceId, string SponsorType, string SponsorImage) { SponsorsDAC sponsorsComponent = new SponsorsDAC(); int SponsorId = 0; return sponsorsComponent.InsertNewSponsors( ref SponsorId, SponsorName, ConferenceId, SponsorType, SponsorImage); }
public bool Insert(Sponsors sponsors) { int autonumber = 0; SponsorsDAC sponsorsComponent = new SponsorsDAC(); bool endedSuccessfuly = sponsorsComponent.InsertNewSponsors( ref autonumber, sponsors.SponsorName, sponsors.ConferenceId, sponsors.SponsorType, sponsors.SponsorImage); if(endedSuccessfuly) { sponsors.SponsorId = autonumber; } return endedSuccessfuly; }