コード例 #1
0
        public async Task<Contract> DeleteContractAsync(Contract contract)
        {
            var mutation = string.Format(Mutations.Mutations.DELETE_CONTRACT, contract.Id);
            var content = JsonConvert.SerializeObject(MutationGenerator.GenerateMutation(mutation, Mutations.Mutations.DELETE_CONTRACT_OPERATION_NAME));

            return await _proxyService.PostMutationAsync<Contract>(content, Mutations.Mutations.DELETE_CONTRACT_OPERATION_NAME);
        }
コード例 #2
0
        public async Task<Operation> CreateOperationAsync(Operation operation)
        {
            var mutation = string.Format(Mutations.Mutations.CREATE_OPERATION, operation.Number, operation.ContractId);

            var content = JsonConvert.SerializeObject(MutationGenerator.GenerateMutation(mutation, Mutations.Mutations.CREATE_OPERATION_OPERATION_NAME));

            return await _proxyService.PostMutationAsync<Operation>(content, Mutations.Mutations.CREATE_OPERATION_OPERATION_NAME);
        }