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

            return(Ok());
        }