Created
August 30, 2013 11:13
-
-
Save dgg/6388831 to your computer and use it in GitHub Desktop.
Model binding dynamic collections. IV NotDeleted extension
This file contains hidden or 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
| 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