Created
May 16, 2017 19:40
-
-
Save alastairs/70d9e7372b3052bc567508bc3a22c1b8 to your computer and use it in GitHub Desktop.
Example Data Model/DTO in ASP.NET MVC
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
namespace Mvc.Examples | |
{ | |
public class CreateRecordRequest | |
{ | |
[JsonProperty("employee_id")] | |
[Required, DisplayName("employee_id")] | |
public string EmployeeId { get; set; } | |
[JsonProperty("source_id")] | |
[Required, DisplayName("source_id")] | |
public string SourceId { get; set; } | |
[JsonProperty("folder_name")] | |
[Required, DisplayName("folder_name")] | |
public string FolderName { get; set; } | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment