コード例 #1
0
ファイル: SponsorsLogic.cs プロジェクト: ramyothman/RBM
        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);
        }
コード例 #2
0
ファイル: SponsorsLogic.cs プロジェクト: ramyothman/RBM
 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;
 }