Skip to content

Instantly share code, notes, and snippets.

@davybrion
Created September 15, 2012 16:08
Show Gist options
  • Save davybrion/3728615 to your computer and use it in GitHub Desktop.
Save davybrion/3728615 to your computer and use it in GitHub Desktop.
code snippets for "Thou Shalt Name Thy Parameter “command”"
[GridAction(EnableCustomBinding = true)]
public ActionResult GetModels(GridCommand gridCommand)
public GridActionAttribute()
{
this.ActionParameterName = "command";
this.adapterFactory = DI.Current.Resolve<IGridActionResultAdapterFactory>();
}
[GridAction(EnableCustomBinding = true)]
public ActionResult GetModels(GridCommand command)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment