| | |
| | | using System.Net.Http; |
| | | using System.Security.Permissions; |
| | | using System.Text; |
| | | using System.Threading.Tasks; |
| | | using System.Web; |
| | | using System.Web.Http; |
| | | |
| | |
| | | /// <returns></returns> |
| | | [Route("GetRealValue")] |
| | | [HttpGet] |
| | | public IStation.Dto.ApiResult GetRealValue() |
| | | public async Task<IStation.Dto.ApiResult> GetRealValue() |
| | | { |
| | | var d = ZyConnectHelper.GetRealReservoirWaterLevel().Result; |
| | | var d = await ZyConnectHelper.GetRealReservoirWaterLevel(); |
| | | |
| | | return new IStation.Dto.ApiResult<double>(d); |
| | | } |
| | |
| | | /// <returns></returns> |
| | | [Route("GetTodayEndPredictiveValue")] |
| | | [HttpGet] |
| | | public IStation.Dto.ApiResult GetTodayEndPredictiveValue() |
| | | public async Task<IStation.Dto.ApiResult> GetTodayEndPredictiveValue() |
| | | { |
| | | var now_value = ZyConnectHelper.GetRealReservoirWaterLevel().Result; |
| | | var now_value = await ZyConnectHelper.GetRealReservoirWaterLevel(); |
| | | |
| | | var today_prj = Common.HistoryAnaPrjFileHelper.GetPrj(DateTime.Today); |
| | | |