Skip to content

Instantly share code, notes, and snippets.

@KennethanCeyer
Created January 2, 2018 05:22
Show Gist options
  • Save KennethanCeyer/350990116f9b263e3021bf5049bcb59f to your computer and use it in GitHub Desktop.
Save KennethanCeyer/350990116f9b263e3021bf5049bcb59f to your computer and use it in GitHub Desktop.
direct parameter binding
[HttpPost]
public void TestA(
string a,
string b
)
{
Debug.WriteLine($"a: {a}, b: {b}");
}
@KennethanCeyer
Copy link
Author

KennethanCeyer commented Jan 2, 2018

request

a: 1
b: 2

output

a: 1, b: 2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment