/// <summary> /// Update the want. /// </summary> /// <returns>True if the want is updated.</returns> public async Task <bool> UpdateWantAsync(OfferModel want) { if (want == null) { return(false); } OfferModelWithToken tokenedModel = want.ToTokenedModel(Token); return(await ApiService.UpdateWantAsync(tokenedModel)); }
/// <summary> /// Update the can. /// </summary> /// <returns>True if the can is updated.</returns> public async Task <bool> UpdateCanAsync(OfferModel can) { if (can == null) { return(false); } OfferModelWithToken tokenedModel = can.ToTokenedModel(Token); return(await ApiService.UpdateCanAsync(tokenedModel)); }