Exemplo n.º 1
0
        public async static Task <Case> UpdateAsync(long partyId, Case party)
        {
            var wrapperObject = CaseWrapper.Load(party);

            var response = await CapsuleClient.makeRequest <CaseWrapper>($"{BASE_ENDPOINT}/{partyId}",
                                                                         "PUT",
                                                                         wrapperObject);

            return(response.Case);
        }
Exemplo n.º 2
0
        public async static Task <Case> CreateAsync(Case party)
        {
            var wrapperObject = CaseWrapper.Load(party);

            var response = await CapsuleClient.makeRequest <CaseWrapper>(BASE_ENDPOINT,
                                                                         "POST",
                                                                         wrapperObject);

            return(response.Case);
        }