Ejemplo n.º 1
0
        public IActionResult Left([FromBody] string data)
        {
            try
            {
                if (_diffService.ValidateInput(data))
                {
                    var decodedData = data.Base64Decode();
                    _persistenceService.Save("LeftData", decodedData);

                    return(Ok("Left data saved successfully"));
                }
            }
            catch (ArgumentException ex)
            {
                return(BadRequest(ex.Message));
            }
            return(BadRequest("Invalid input"));
        }