Esempio n. 1
0
        public IActionResult GetByNumbers([FromQuery] int?countSymbols, [FromQuery] bool camelCaseFilter)
        {
            DataStorage data = _router.GetContent();

            List <string> response = new List <string>();

            foreach (string s in data.Data)
            {
                if (s.Length > countSymbols)
                {
                    response.Add(s);
                }
            }

            if (response.Count == 0)
            {
                return(BadRequest("Coincidences not found"));
            }

            return(Ok(response));
        }