示例#1
0
 public IActionResult SetTimetable([FromBody] TimetableAction[] aActions)
 {
     TimetableManager.InitTimetableNextExecute(aActions);
     TimetableManager.TimetableConfig.Current.Actions = aActions;
     TimetableManager.TimetableConfig.Save();
     return(Ok());
 }
示例#2
0
        public async Task <IActionResult> RunThis([FromBody] SubTimetableAction aAction)
        {
            await Program.Host.SaveApiCall(() => TimetableManager.RunThis(aAction), TimetableManager, $"{aAction.actionType}");

            return(Ok());
        }