Exemplo n.º 1
0
 public OperationResult ExecuteScalar(string serviceName, string connectionName, string commandText, params object[] parameterValues)
 {
     try
     {
         DataPortal portal = new DataPortal();
         return portal.ExecuteScalar(serviceName, connectionName, commandText, parameterValues);
     }
     catch (Exception ex)
     {
         return new OperationResult() { Message = ex.Message };
     }
 }