Exemplo n.º 1
0
        public IActionResult DeleteNotificationType(int id)
        {
            var denomiationType = _notificationTypeRepository.FindNotificationTypeById(id);

            if (denomiationType == null)
            {
                return(NotFound());
            }

            _notificationTypeRepository.DeleteNotificationType(denomiationType);
            return(Ok());
        }