public string Offline(int nodeId) { //Create an instance of the NodeManagerService class NodeManagerService node = new NodeManagerService(); //Returns the status of whether the node's status was set successfully to offline or not from the SetNodeOffline method in the NodeManagerService class return(node.SetNodeOffline(nodeId)); }
public string MaxLimits([FromBody] Nodes node) { //Create an instance of the NodeManagerService class NodeManagerService newNode = new NodeManagerService(); //Returns the status of whether the node's max limits were set successfully or not from the SetNodeMaxLimits method in the NodeManagerService class return(newNode.SetNodeMaxLimits(node)); }
public string AddNode(Nodes node) { //Create an instance of the NodeManagerService class NodeManagerService newNode = new NodeManagerService(); //Returns the status of whether the node was created successfully or not from the AddNode method in the NodeManagerService class return(newNode.AddNode(node)); }
public string RemoveNode(int nodeId) { //Create an instance of the NodeManagerService class NodeManagerService node = new NodeManagerService(); //Returns the status of whether the node was removed successfully or not from the RemoveNode method in the NodeManagerService class return(node.RemoveNode(nodeId)); }
public List <NodesDAO> Nodes(int?nodeId) { //Create an instance of the NodeManagerService class NodeManagerService node = new NodeManagerService(); //Returns the result(s) of the GetNodes method in the NodeManagerService class return(node.GetNodes(nodeId)); }