public async Task <IActionResult> GetReccurenceTickets(int eventid, DateTime recurrenceKey) { var ticketRepository = new TicketRespository(); //var EventTicketClasses = await ticketRepository.GetEventRecurringTicketClasses(eventid, recurrenceKey.ToUniversalTime()); return(Ok()); }
public async Task <IActionResult> Get(Guid eventid) { var ticketRepository = new TicketRespository(); var EventTicketClasses = await ticketRepository.GeteventTicketClass(eventid); return(Ok(JsonConvert.SerializeObject(EventTicketClasses))); }
public async Task <string> Post([FromBody] object value) { var ordertoBeReserved = JsonConvert.DeserializeObject <OrdertoBeReserved>(value.ToString()); TicketRespository ticketRespository = new TicketRespository(); var isticketreserved = await ticketRespository.ReserveTickets(ordertoBeReserved.Eventid, ordertoBeReserved.TicketsToReserve); // var result = await orderRespository.CreatOrder(JsonConvert.DeserializeObject<CreateOrder[]>(value.ToString())); return(""); }