SyntaxFix
Write A Post
Hire A Developer
Questions
Isn't this what default constructors are for?
class MyModel { public MyModel() { this.ReturnDate = DateTime.Now; } public date ReturnDate {get; set;}; }