Example #1
0
        public IActionResult GetIncrement()
        {
            _counterService.Increment();

            return(Ok(_counterService.GetValue()));
        }
Example #2
0
        public IEnumerable <string> Get()
        {
            _counterService.Increment();

            return(Enumerable.Range(1, _counterService.GetValue()).Select(x => $"value{x}"));
        }