Created
January 2, 2018 05:23
-
-
Save KennethanCeyer/d9ff8f7aa09e25f48ec924fa02b983a2 to your computer and use it in GitHub Desktop.
parameter binding with model
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class TestBModel | |
{ | |
public string a { get; set; } | |
public string b { get; set; } | |
} | |
[HttpPost] | |
public void TestB( | |
TestBModel model | |
) | |
{ | |
Debug.WriteLine($"a: {model.a}, b: {model.b}"); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
request
output