Skip to content

Instantly share code, notes, and snippets.

@Boztown
Created December 20, 2013 18:35
Show Gist options
  • Save Boztown/8059291 to your computer and use it in GitHub Desktop.
Save Boztown/8059291 to your computer and use it in GitHub Desktop.
// if our viewmodel has an ID then grab that entity... otherwise create a new one
var collection = collectionDto.Id.HasValue ? _collectionRepository.Get(collectionDto.Id.Value) : new Collection();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment