private void GetAlarmById() { alarmService = App.AlarmService; Alarm.IsInitFinished = false; alarm = alarmService.GetAlarm(id); Alarm.IsInitFinished = true; }
public HttpResponseMessage GetSingleAlarm(int id) { var result = _alarmService.GetAlarm(id); return(Request.CreateResponse(HttpStatusCode.OK, result)); }