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