public bool executeCommand(IActionBuilder builder) { var validator = builder.buildValidator(); if (validator.validateAction()) { var command = builder.buildCommand(); command?.executeAction(); return(true); } return(false); }
public bool executeCommand(IActionBuilder builder) { var validator = builder.buildValidator(); if (validator.validateAction()) { var command = builder.buildCommand(); command?.executeAction(); return(true); } return(false); }