public async Task <IActionResult> Get(string clientId, string key) { if (!_inputValidator.IsValidClientId(clientId)) { return(BadRequest(ResponseModel.CreateWithError(ErrorType.Validation, InvalidClientIdMessage))); } if (!_inputValidator.IsValidKey(key)) { return(BadRequest(ResponseModel.CreateWithError(ErrorType.Validation, InvalidKeyMessage))); } try { var value = await _clientDictionary.GetAsync(clientId, key); return(Ok(ResponseModel.CreateWithData(value))); } catch (KeyNotFoundException) { return(NotFound(ResponseModel.CreateWithError(ErrorType.NotFound, null))); } }