Example #1
0
        public async Task <IActionResult> PutType(int id, [FromBody] ViolationType data)
        {
            var response = await _violationService.UpdateViolationTypeAsync(id, data);

            if (response)
            {
                return(Ok(response));
            }

            return(NotFound(null));
        }