Advertisement
Guest User

Untitled

a guest
May 29th, 2015
230
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.99 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Collections.Specialized;
  4. using System.Data;
  5. using System.Text;
  6. using System.Web;
  7. using System.Web.UI;
  8. using System.Web.UI.WebControls;
  9. using System.Data.SqlClient;
  10. using System.Configuration;
  11.  
  12. public partial class api_BanID : WOApiWebPage
  13. {
  14.     void OutfitOp(string CustomerID, string reason)
  15.     {
  16.         SqlCommand sqcmd = new SqlCommand();
  17.         sqcmd.CommandType = CommandType.StoredProcedure;
  18.         sqcmd.CommandText = "ADMIN_BanUser";
  19.         sqcmd.Parameters.AddWithValue("@in_CustomerID", CustomerID);
  20.         sqcmd.Parameters.AddWithValue("@in_Reason", reason);
  21.  
  22.         if (!CallWOApi(sqcmd))
  23.             return;
  24.  
  25.         Response.Write("WO_0");
  26.     }
  27.  
  28.     protected override void Execute()
  29.     {
  30.         //if (!WoCheckLoginSession())
  31.          //   return;
  32.         string CustomerID = web.Param("CustomerID");
  33.         string reason = web.Param("reason");
  34.  
  35.         OutfitOp(CustomerID,reason);
  36.     }
  37. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement