public async Task <IActionResult> Add([FromBody] ClientApiModel apiModel)
        {
            if (!this.ModelState.IsValid)
            {
                return(new UnprocessableEntityResult());
            }

            await this.clientsRepository.Add(apiModel.ToDomainModel());

            return(new EntityCreatedResult());
        }
        public async Task <IActionResult> UpdateClient(string clientId, [FromBody] ClientApiModel apiModel)
        {
            if (!this.ModelState.IsValid)
            {
                return(new UnprocessableEntityResult());
            }

            apiModel.Id = clientId;
            var client = apiModel.ToDomainModel();

            await this.clientsRepository.Update(client);

            return(new EntityCreatedResult());
        }