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

            return(Ok());
        }