45 lines
1.1 KiB
C#
45 lines
1.1 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Net;
|
|
using System.Net.Http;
|
|
using System.Web.Http;
|
|
using BLL;
|
|
using Model;
|
|
using Newtonsoft.Json;
|
|
|
|
namespace WebAPI.Controllers
|
|
{
|
|
/// <summary>
|
|
/// 施工作业风险
|
|
/// </summary>
|
|
public class ConstructionRiskController : ApiController
|
|
{
|
|
#region 推送施工作业风险数据
|
|
|
|
/// <summary>
|
|
/// 推送施工作业风险数据
|
|
/// </summary>
|
|
/// <returns></returns>
|
|
[HttpPost]
|
|
public Model.ResponeData PushConstructionRiskSync()
|
|
{
|
|
var responeData = new Model.ResponeData();
|
|
try
|
|
{
|
|
var returndata = ConstructionRiskListService.PushConstructionRisk();
|
|
responeData.code = returndata.code;
|
|
responeData.message = returndata.message;
|
|
}
|
|
catch (Exception ex)
|
|
{
|
|
responeData.code = 0;
|
|
responeData.message = ex.Message;
|
|
}
|
|
return responeData;
|
|
}
|
|
|
|
#endregion
|
|
}
|
|
}
|