public bool doSpecialEvent(string unitID, string action, string customer) { DataAccess da = new DataAccess(); switch (customer) { case "RegionH": switch (action) { case "A": return da.AwakeAction(unitID); case "F": return da.FlushAction(unitID); case "S": return da.SoapAction(unitID); default: //Not a special event for RegionH return false; } case "Lundbeck": switch (action) { case "On": return true; case "Off": return true; default: //Not a special event for Lundbeck return false; } default: return false; } }