1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
| using IStation;
| using IStation.ChEr.DAL;
| using System;
|
| namespace IStation.Application
| {
| /// <summary>
| /// Debug
| /// </summary>
| [Route("Debug")]
| [ApiDescriptionSettings("Debug", Name = "Debug(调试)", Order = 9900)]
| public class Debug_Controller : IDynamicApiController
| {
| /// <summary>
| ///Debug log
| /// </summary>
| [Route("LogInfo")]
| [HttpGet]
| public string LogInfo( )
| {
| IStation.LogHelper.Info("info from debug api");
|
| return "ok";
| }
|
|
| /// <summary>
| /// 保存到数据库
| /// </summary>
| [Route("SaveDB")]
| [HttpGet]
| public string SaveDB()
| {
| //var db = new MainDbContext();
| //db.InitTables();
| //var bll = new IStation.BLL.PredictData();
| //bll.GetAll();
| return null;
| }
| }
| }
|
|