Ejemplo n.º 1
0
        public IActionResult Get()
        {
            var leftData = _persistenceService.Get("LeftData");

            if (string.IsNullOrEmpty(leftData))
            {
                return(BadRequest("Missing left data"));
            }

            var rightData = _persistenceService.Get("RightData");

            if (string.IsNullOrEmpty(rightData))
            {
                return(BadRequest("Missing right data"));
            }

            var result = _diffService.DiffJson(leftData, rightData);

            return(Ok(result));
        }