예제 #1
0
        public IActionResult Post([FromBody] AlarmLog alarmlogvalue)
        {
            var newAlarmLogValue = repo.AddAlarmLogValue(alarmlogvalue);

            if (newAlarmLogValue.Status == RepositoryActionStatus.Created)
            {
                PushNotifications.AlarmNotification(alarmlogvalue);
                return(Ok());
            }
            else
            {
                return(BadRequest());
            }
        }