Skip to content

Instantly share code, notes, and snippets.

@ierhalim
Last active May 14, 2020 20:22
Show Gist options
  • Save ierhalim/8d2cdba9a1fd792840cf9312bffdee7f to your computer and use it in GitHub Desktop.
Save ierhalim/8d2cdba9a1fd792840cf9312bffdee7f to your computer and use it in GitHub Desktop.
public interface IInserter<TSource> where TSource : ExternalSourceModel
{
void Insert(TSource source);
}
public interface IUpdater<TSource> where TSource : ExternalSourceModel
{
void Update(TSource source);
}
public interface IValidator<TSource> where TSource : ExternalSourceModel
{
bool Validate(TSource source, out string validationMessage);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment