Exemplo n.º 1
0
        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));
        }
Exemplo n.º 2
0
        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);
        }