Beispiel #1
0
        public static AquaPark.Dogodek[] GetAllEvents()
        {
            AquaPark.DogodkiServiceClient client  = new AquaPark.DogodkiServiceClient();
            AquaPark.Dogodek[]            dogodki = client.VrniDogodke();

            return(dogodki);
        }
Beispiel #2
0
 public static bool ReserveAndPayForEvent(int eventId, int numOfPeople, string TRR)
 {
     AquaPark.DogodkiServiceClient client = new AquaPark.DogodkiServiceClient();
     AquaPark.Prijava prijava             = client.PrijavaNaDogodek(eventId, "test", "test", numOfPeople, true);
     return(client.PlacajPrijavo(prijava.IdPrijava, "test", "test", TRR, false));
 }
Beispiel #3
0
 public static int GetAvailablePlacesForEvent(int eventId)
 {
     AquaPark.DogodkiServiceClient client = new AquaPark.DogodkiServiceClient();
     return(client.VrniSteviloProstihMestDogodka(eventId));
 }