public override void HandleRequest() { switch (EventCommander.ToLower()) { case "paul": break; default: break; } base.HandleRequest(); }
public virtual void HandleRequest() { switch (EventCommander.ToLower()) { case "list": Get(); break; case "search": Get(); break; case "resetsearch": ResetSearch(); Get(); break; case "add": Add(); break; case "save": Save(); if (IsValid) { Get(); } break; case "edit": IsValid = true; Edit(); break; case "delete": ResetSearch(); Delete(); break; case "cancel": ListMode(); Get(); break; default: break; } }