예제 #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));
        }
예제 #2
0
 public EventDTO GetEvent(int id)
 {
     return(HTTPRequestHelper.CreateGetRequest <EventDTO>(ApiResources.GetEvent, id));
 }
예제 #3
0
 public IEnumerable <EventDTO> GetFutureEvents()
 {
     return(HTTPRequestHelper.CreateGetRequest <List <EventDTO> >(ApiResources.GetFutureEvents));
 }
예제 #4
0
 public int CreateEvent(EventDTO dto)
 {
     return(HTTPRequestHelper.CreatePostRequest <EventDTO>(ApiResources.CreateEvent, dto));
 }