Beispiel #1
0
        /// <summary>
        /// Update the Note for a given SensorID
        /// </summary>
        /// <param name="SensorNote">SensorNote update model</param>
        /// <returns>Success/Failure</returns>
        public async Task <string> SetSensorNote(Model.DTO.UpdateSensorNote SensorNote)
        {
            var sensorMessage = await _httpService.PutAsAsync <Model.DTO.SensorNoteResponse>("sensor/SetSensorNote", SensorNote);

            return(sensorMessage.Message);
        }
Beispiel #2
0
 public async Task <IHttpActionResult> UpdateSensorNote([FromBody] Model.DTO.UpdateSensorNote SensorNote)
 {
     return(Ok(await _sensorApplicationService.SetSensorNote(SensorNote)));
 }