/// <summary> /// Creates/Updates sensor attribute. /// </summary> /// <param name="SensorAttribute">Sensor attribute model</param> /// <returns>Created/Updated Sensor attribute model</returns> public async Task <Model.DTO.SensorAttribute> SensorAttributeSet(Model.DTO.SensorAttribute SensorAttribute) { var queryParam = string.Format("SensorID={0}&Name={1}&Value={2}", SensorAttribute.SensorID, SensorAttribute.Name, SensorAttribute.Value); return(await _httpService.GetAsAsync <Model.DTO.SensorAttribute>("SensorAttributeSet", queryParam, false, false)); }
public async Task <IHttpActionResult> UpdateSensorAttribute(Model.DTO.SensorAttribute SensorAttribute) { return(Ok(await _sensorApplicationService.UpdateSensorAttribute(SensorAttribute))); }