Skip to content

Instantly share code, notes, and snippets.

@dgg
Created August 30, 2013 11:13
Show Gist options
  • Select an option

  • Save dgg/6388831 to your computer and use it in GitHub Desktop.

Select an option

Save dgg/6388831 to your computer and use it in GitHub Desktop.
Model binding dynamic collections. IV NotDeleted extension
public static IEnumerable<T> NotDeleted<T>(this IEnumerable<T> deletables) where T : IClientDeletable
{
return deletables.EmptyIfNull()
// ignore the ones deleted client-side
.Where(i => !i.ClientDeleted);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment