public async Task <ContractModels.PrimaryObject> CreateAsync(ViewModels.PrimaryObject inputModel)
        {
            Ensure.That(inputModel, nameof(inputModel)).IsNotNull();

            var contractModel = new ContractModels.PrimaryObject()
            {
                Description = inputModel.Description,
                Name        = inputModel.Name,
            };

            return(await _apiClient.CreateAsync(__addressRoot, contractModel));
        }
        public async Task <ContractModels.PrimaryObject> UpdateAsync(Guid id, ViewModels.PrimaryObject inputModel)
        {
            Ensure.That(id, nameof(id)).IsNotEmpty();
            Ensure.That(inputModel, nameof(inputModel)).IsNotNull();

            var contractModel = new ContractModels.PrimaryObject()
            {
                Description = inputModel.Description,
                Name        = inputModel.Name,
            };

            return(await _apiClient.UpdateAsync($"{__addressRoot}/{id}", contractModel));
        }