Пример #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());
        }