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