public IActionResult Post([FromBody] AlarmLog alarmlogvalue) { var newAlarmLogValue = repo.AddAlarmLogValue(alarmlogvalue); if (newAlarmLogValue.Status == RepositoryActionStatus.Created) { PushNotifications.AlarmNotification(alarmlogvalue); return(Ok()); } else { return(BadRequest()); } }