public void DoAction(HttpContext context) { var action = context.Request.Query["action"]; if (action.Count <= 0) { new NotSupportedHandler(context).Process(); return; } if (actionList.ContainsKey(action)) { actionList[action].Invoke(context); } else { new NotSupportedHandler(context).Process(); } }