Beispiel #1
0
 /// <summary>Saves card.</summary>
 /// <param name="card">Card instance to be updated.</param>
 /// <param name="cardId">Card identifier.</param>
 /// <returns>Card instance returned from API.</returns>
 public CardDTO Update(CardPutDTO card, String cardId)
 {
     return(this.UpdateObject <CardDTO, CardPutDTO>(MethodKey.CardSave, card, cardId));
 }
Beispiel #2
0
 /// <summary>Saves card.</summary>
 /// <param name="card">Card instance to be updated.</param>
 /// <param name="cardId">Card identifier.</param>
 /// <returns>Card instance returned from API.</returns>
 public async Task <CardDTO> Update(CardPutDTO card, String cardId)
 {
     return(await this.UpdateObject <CardDTO, CardPutDTO>(MethodKey.CardSave, card, cardId));
 }
Beispiel #3
0
        public async Task <CardDTO> Update(CardPutDTO card, string cardId)
        {
            var targetUrl = $"{_baseUrl}/cards/{cardId}";

            return(await UpdateEntity <CardDTO, CardPutDTO>(targetUrl, card));
        }