Exemple #1
0
        public async Task <IActionResult> Get(string key, bool format = false)
        {
            var result = await _keyValueService.GetValueAsync(key, format);

            if (result.Item1)
            {
                return(Ok(result.Item2));
            }
            else
            {
                return(NotFound());
            }
        }