示例#1
0
        public IActionResult MarkScooterAsFixed(int id)
        {
            var returned = _defectRepository.MarkFixed(id);

            if (!returned)
            {
                ModelState.AddModelError("", $"Can't find the scooter in database");
                return(StatusCode(500, ModelState));
            }
            return(Ok());
        }