Skip to content

Instantly share code, notes, and snippets.

@v6ak
Forked from rarous/gist:5686814
Last active December 18, 2015 01:29
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 v6ak/5704291 to your computer and use it in GitHub Desktop.
Save v6ak/5704291 to your computer and use it in GitHub Desktop.
public OrderableService GetById(int id)
{
return (
from service in SourceSet
where service.ID == id
select service
).FirstOrDefault();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment