コード例 #1
0
        public async Task <IActionResult> Delete(string id)
        {
            try
            {
                logger.LogInformation("delete id:{0}", id);
                await keyValueRepository.RemoveKeyValueAsync(id);

                return(Ok());
            }
            catch (Exception ex)
            {
                logger.LogError("Delete {0}", ex.Message);
            }
            return(StatusCode(500));
        }