public async static Task <Party> UpdateAsync(long partyId, Party party) { var wrapperObject = PartyWrapper.Load(party); var response = await CapsuleClient.makeRequest <PartyWrapper>($"{BASE_ENDPOINT}/{partyId}", "PUT", wrapperObject); return(response.Party); }
public async static Task <Party> CreateAsync(Party party) { var wrapperObject = PartyWrapper.Load(party); var response = await CapsuleClient.makeRequest <PartyWrapper>(BASE_ENDPOINT, "POST", wrapperObject); return(response.Party); }