Пример #1
0
    public List <MachineState> ChangeStatus(int id, MachineState.MachineStatus status)
    {
        CurrentContext.Validate();
        MachineState ms = new MachineState(id);

        ms.UpdateMachineStatus(status);
        return(MachineState.EnumUsed());
    }
Пример #2
0
 public List <MachineState> PauseOnOff(int id)
 {
     CurrentContext.Validate();
     MachineState.PauseOnOff(id, CurrentContext.UserID);
     return(MachineState.EnumUsed());
 }
Пример #3
0
 public List <MachineState> getMachines()
 {
     CurrentContext.Validate();
     return(MachineState.EnumUsed());
 }