Example #1
0
        public bool CanStudentBuyStudentTicket(int eventId, int studentId)
        {
            var nameIdPairs = new Dictionary <string, int>();

            nameIdPairs.Add("EventId", eventId);
            nameIdPairs.Add("StudentId", studentId);
            return(HTTPRequestHelper.CreateGetRequest <bool>(ApiResources.CanStudentBuyStudentTicket, nameIdPairs));
        }
Example #2
0
 public IEnumerable <EventDTO> GetFutureEvents()
 {
     return(HTTPRequestHelper.CreateGetRequest <List <EventDTO> >(ApiResources.GetFutureEvents));
 }
Example #3
0
 public EventDTO GetEvent(int id)
 {
     return(HTTPRequestHelper.CreateGetRequest <EventDTO>(ApiResources.GetEvent, id));
 }