我asp.net写的一个供前端调用的接口,在本机浏览器运行成功了,但前端人员调用我的接口地址没反应,如我不写station.cshtml怎样发布到iis服务器中?
我view中station.cshtml 没写
这是我的Controller层
public class StationController : BaseController
{
private static ILog log = LogManager.GetLogger(typeof(StationController));
// GET: Station
[HttpGet]
public JsonResult GetTest(string id)
{
var res = new JsonResult();
ApiResult ret = new ApiResult();
res.JsonRequestBehavior = JsonRequestBehavior.AllowGet;
List<Station> list = new List<Station>();
list = new TM_GetStationDAL().GetSta(id);
ret.data = new { List = list };
return res.FillResult(ret, ResultEnum.成功);
}
}