Exemplo n.º 1
0
        public IActionResult DeleteStop(int id)
        {
            var stop = _stops.GetStop(id);

            if (stop != null)
            {
                _stops.DeleteStop(id);
                return(Ok());
            }

            else
            {
                return(NotFound($"stop with id {id} was not found"));
            }
        }