コード例 #1
0
ファイル: VenuesLogic.cs プロジェクト: ramyothman/RBM
        public bool Insert(string Name, string Description, string Location, int Star, string URL, string Phone, string Fax, string Email)
        {
            VenuesDAC venuesComponent = new VenuesDAC();
            int ID = 0;

            return venuesComponent.InsertNewVenues(ref ID, Name, Description, Location, Star, URL, Phone, Fax, Email);
        }
コード例 #2
0
ファイル: VenuesLogic.cs プロジェクト: ramyothman/RBM
 public bool Insert(Venues venues)
 {
     int autonumber = 0;
     VenuesDAC venuesComponent = new VenuesDAC();
     bool endedSuccessfuly = venuesComponent.InsertNewVenues(ref autonumber, venues.Name, venues.Description, venues.Location, venues.Star, venues.URL, venues.Phone, venues.Fax, venues.Email);
     if (endedSuccessfuly)
     {
         venues.ID = autonumber;
     }
     return endedSuccessfuly;
 }