Skip to content

Instantly share code, notes, and snippets.

@brendanmckenzie
Created July 23, 2014 04:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save brendanmckenzie/c3d1990f7206536c9a62 to your computer and use it in GitHub Desktop.
Save brendanmckenzie/c3d1990f7206536c9a62 to your computer and use it in GitHub Desktop.
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