public DataResult <string> ProcessBeatItems(string secret) { var result = RunAction(() => { var life = new JobLifeService(); return(life.DoBeat(BeatTypes.Items)); }, $"beatitems"); return(result); }
public DataResult <string> ProcessCycle(string secret) { var result = RunAction(() => { var life = new JobLifeService(); return(life.ToggleCycle()); }, $"period"); return(result); }