Created
May 12, 2016 14:08
-
-
Save Rookian/16be87129ba430857562bac59ee1acf1 to your computer and use it in GitHub Desktop.
ViewModel and InputModel
This file contains 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 ViewModel | |
{ | |
// POST values | |
public Command Command { get; set; } | |
// Read-only values | |
public string Name { get; set; } | |
} | |
public class Command // or InputModel | |
{ | |
public int Id { get; set; } | |
public string Name { get; set; } | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment