Example #1
0
        public void Switch(int id)
        {
            Conditioner Conditioner = this.GetConditionerById(id);

            if (Conditioner.IsOn)
            {
                Conditioner.Off();
            }
            else
            {
                Conditioner.On();
            }
            this.Unit.SaveChanges();
        }
Example #2
0
 public void Execute()
 {
     c.On();
 }