Created
July 23, 2014 04:45
-
-
Save brendanmckenzie/c3d1990f7206536c9a62 to your computer and use it in GitHub Desktop.
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
interface IValidatable | |
{ | |
bool Validate(); | |
IEnumerable<ValidationError> ModelErrors { get; } | |
} | |
namespace App.Model | |
{ | |
public class Client : IValidatable | |
{ | |
public bool Validate() | |
{ | |
// do validation | |
} | |
public IEnumerable<ValidationError> ModelErrors { get; private set; } | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment