public async Task <ApiResponse <IEnumerable <SceneDetailsDto> > > Get(int eventId) { return(await Respond .AsyncWithMany <SceneDetailsDto>(async (response, fail) => { response.Result = await _eventDefinitionsClient.EventDefinitionsClient.ApiEventsScenesGetAsync(eventId); })); }
public Task <ApiResponse <IEnumerable <OrderDeliveryDto> > > Get(string clientId, string orderId) { return(Respond .AsyncWithMany <OrderDeliveryDto>(async(response, fail) => { response.Result = await _deliveriesService.GetSelectedDeliveryAsync(clientId, orderId); })); }
public Task <ApiResponse <IEnumerable <SeatReservationDto> > > Get(int eventId, int clientId, int orderId) { return(Respond .AsyncWithMany <SeatReservationDto>(async(response, fail) => { response.Result = await _reservationService.GetEventOrderReservationsAsync(eventId, clientId, orderId); })); }
public Task <ApiResponse <IEnumerable <SeatReservationDto> > > Get(int eventId) { return(Respond .AsyncWithMany <SeatReservationDto>(async(response, fail) => { response.Result = await _reservationsProvider.GetEventSeatReservationsAsync(eventId); })); }
public Task <ApiResponse <IEnumerable <TicketOrderDto> > > Get(int clientId, int orderId) { return(Respond .AsyncWithMany <TicketOrderDto>(async(response, fail) => { response.Result = await _ticketsService.GetClientTicketsAsync(clientId, orderId); })); }
public Task <ApiResponse <IEnumerable <OrderPaymentDto> > > Get(int clientId, int orderId) { return(Respond .AsyncWithMany <OrderPaymentDto>(async(response, fail) => { response.Result = await _paymentService.GetSelectedPaymentAsync(clientId, orderId); })); }
public Task <ApiResponse <IEnumerable <ClientOrderDto> > > Get(int clientId, ClientOrderState?state) { return(Respond .AsyncWithMany <ClientOrderDto>(async(response, fail) => { response.Result = await _ordersProvider.GetClientOrdersByStateAsync(clientId, state); })); }
public Task <ApiResponse <IEnumerable <TicketOrderDto> > > Get(string eventId, string clientId, string orderId) { return(Respond .AsyncWithMany <TicketOrderDto>(async(response, fail) => { response.Result = await _ticketsService.GetClientTicketsForEventAsync(eventId, clientId, orderId); })); }
public Task <ApiResponse <IEnumerable <UserClientDto> > > Get(string identityId) { return(Respond .AsyncWithMany <UserClientDto>(async(response, fail) => { response.Result = await _clientCrud.GetUserClientAsync(identityId); })); }
public Task <ApiResponse <IEnumerable <EventListItemDto> > > Get() { return(Respond .AsyncWithMany <EventListItemDto>(async(response, fail) => { response.Result = await _eventDefinitionsClient.EventDefinitionsClient.ApiEventsGetAsync(); })); }
public Task <ApiResponse <IEnumerable <EventListItemDto> > > Get() { return(Respond .AsyncWithMany <EventListItemDto>(async(response, fail) => { response.Result = await _listProvider.GetAllEventsAsync(); })); }
public Task <ApiResponse <IEnumerable <UserClientDto> > > Get(string identityId) { return(Respond .AsyncWithMany <UserClientDto>(async(response, fail) => { var client = await _userClient.GetClientForUserAsync(identityId); response.Result = client != null ? client.AsEnumeration() : new UserClientDto[0]; })); }
public async Task <ApiResponse <IEnumerable <SceneDetailsDto> > > Get(int eventId) { return(await Respond .AsyncWithMany <SceneDetailsDto>(async (response, fail) => { response.Result = await _sceneDetailsProvider .GetSceneDetailsForEventAsync(eventId) .AsEnumeration(); })); }
public Task <ApiResponse <IEnumerable <ClientOrderDto> > > Get(string clientId, ClientOrderState?state) { return(Respond .AsyncWithMany <ClientOrderDto>(async(response, fail) => { try { response.Result = await _ordersProvider.GetClientOrdersByStateAsync(clientId, state); } catch (Exception e) { Console.WriteLine(e); throw; } })); }
public Task <ApiResponse <IEnumerable <SeatReservationDto> > > Get(string eventId) { return(Respond .AsyncWithMany <SeatReservationDto>(async(response, fail) => { try { response.Result = await _reservationsService.GetEventSeatReservationsAsync(eventId); } catch (Exception e) { Console.WriteLine(e); throw; } })); }