private async void LoadAlarms()
        {
            List <Alarm> tmpAlarms = await _alarmService.GetAlarms();

            Alarms = new ObservableCollection <Alarm>(tmpAlarms);
        }
Example #2
0
        public HttpResponseMessage GetAlarms()
        {
            var result = _alarmService.GetAlarms();

            return(Request.CreateResponse(HttpStatusCode.OK, result));
        }