public List <MachineState> ChangeStatus(int id, MachineState.MachineStatus status) { CurrentContext.Validate(); MachineState ms = new MachineState(id); ms.UpdateMachineStatus(status); return(MachineState.EnumUsed()); }
public List <MachineState> PauseOnOff(int id) { CurrentContext.Validate(); MachineState.PauseOnOff(id, CurrentContext.UserID); return(MachineState.EnumUsed()); }
public List <MachineState> getMachines() { CurrentContext.Validate(); return(MachineState.EnumUsed()); }