예제 #1
0
        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);
        }
예제 #2
0
        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);
        }