using IStation.Common;
|
using IStation.Dto;
|
using System;
|
using System.Collections.Generic;
|
using System.IO;
|
using System.Linq;
|
using System.Net;
|
using System.Net.Http;
|
using System.Text;
|
using System.Web;
|
using System.Web.Http;
|
using System.Web.UI.WebControls;
|
using System.Web.UI.WebControls.WebParts;
|
|
namespace IStation.WebApi.Controllers
|
{
|
/// <summary>
|
/// 水库参数
|
/// </summary>
|
[RoutePrefix("ReservoirParas")]
|
public class ReservoirParasController : ApiController
|
{
|
/// <summary>
|
/// 获取
|
/// </summary>
|
/// <returns></returns>
|
[Route("GetList")]
|
[HttpGet]
|
public IStation.Dto.ApiResult GetList()
|
{
|
var list = AnaGlobalParas.ReservoirParasList;
|
|
return new IStation.Dto.ApiResult<List<Model.ReservoirParas>>(list);
|
}
|
|
/// <summary>
|
/// 保存
|
/// </summary>
|
/// <returns></returns>
|
[Route("SaveList")]
|
[HttpPost]
|
public IStation.Dto.ApiResult GetList([FromBody] List<Model.ReservoirParas> list)
|
{
|
IStation.Common.ReservoirParasHelper.SaveList(list);
|
|
return new IStation.Dto.ApiResult<bool>(true);
|
}
|
|
}
|
}
|