fork download
  1. public class DeleteCategory : IHttpHandler, IReadOnlySessionState
  2. {
  3. public void ProcessRequest(HttpContext context)
  4. {
  5. context.Response.DisablePageCaching();
  6.  
  7. int categoryID = int.Parse(context.Request.QueryString["id"]);
  8.  
  9. UserData ud = LoginHelper.LoggedInUserData;
  10.  
  11. if (CategoriesBLL.DeleteCategory(ud, categoryID))
  12. {
  13. context.Response.Write("OK");
  14. }
  15. else
  16. {
  17. context.Response.Write("InUse");
  18. }
  19. }
  20.  
  21. public bool IsReusable
  22. {
  23. get { return false; }
  24. }
  25. }
Not running #stdin #stdout 0s 0KB
stdin
Standard input is empty
stdout
Standard output is empty