Ejemplo n.º 1
0
		public void Update( Recording set, Vote vote )
		{
			var record = context.Create<Record>( x => x.Recording = set );
			record.Count = locator.Locate( vote );
			vote.Records.Add( record );
		}
Ejemplo n.º 2
0
		public IEnumerable<Vote> Retrieve( Recording @set )
		{
			var result = context.Votes.Where( vote => vote.Records.All( record => record.Recording.Id != @set.Id ) );
			return result;
		}