Exemplo n.º 1
0
        public async Task <IActionResult> SaveSpreadsheetCards()
        {
            var cards = await _localdataClient.LoadDataFromSpreadsheet(new LoadCardDataRequest(), Timeouts.GLOBAL);

            var request = new SaveCardsRequest()
            {
                CardData = Convert(cards.Response.Item1)
            };
            var reply = await _client.SaveCards(request, Timeouts.GLOBAL);

            return(Ok(reply.Response));
        }
Exemplo n.º 2
0
 public Task <MessageResponse <Boolean> > SaveCards(SaveCardsRequest request, int millisecondsTimeout = -1, CancellationToken cancellationToken = default(CancellationToken))
 {
     return(WriteAndReply <SaveCardsRequest, Boolean>(Queueing.Queues.SaveCards, request, null, millisecondsTimeout, cancellationToken));
 }