33 lines
773 B
C#
33 lines
773 B
C#
using BLL;
|
|
using System;
|
|
using System.Web.Http;
|
|
|
|
namespace WebAPI.Controllers
|
|
{
|
|
/// <summary>
|
|
/// 五环PMP系统
|
|
/// </summary>
|
|
public class PMPController : ApiController
|
|
{
|
|
/// <summary>
|
|
/// 每天夜间同步获取PMP系统项目数据
|
|
/// </summary>
|
|
/// <returns></returns>
|
|
[HttpPost]
|
|
public Model.ResponeData SynPMPProjectData()
|
|
{
|
|
var responeData = new Model.ResponeData();
|
|
try
|
|
{
|
|
PMPDataService.GetPMPProjectMasterData();
|
|
}
|
|
catch (Exception ex)
|
|
{
|
|
responeData.code = 0;
|
|
responeData.message = ex.ToString();
|
|
}
|
|
return responeData;
|
|
}
|
|
|
|
}
|
|
} |