private IEnumerable <VariableDto> GetVariables(VariableScope scope, int scopeID) { var variables = _variableService.GetAllForScopeAs <VariableDto>(scope, scopeID); return(variables.IsNullOrEmpty() ? Enumerable.Empty <VariableDto>() : variables.OrderBy(v => v.Name)); }