/// <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)); }
/// <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)); }
public async Task <CardDTO> Update(CardPutDTO card, string cardId) { var targetUrl = $"{_baseUrl}/cards/{cardId}"; return(await UpdateEntity <CardDTO, CardPutDTO>(targetUrl, card)); }