Example #1
0
		public Album Albums (int id)
		{
			// fake some data
			var tracks = new Track[] {
				new Track { Title = "The Miracle (of Joey Ramone)", Length = 255 },
				new Track { Title = "Every Breaking Wave", Length = 252 }
			};

			var album = new Album {
				Artist = "U2",
				Tracks = tracks
			};

			return album;
		}
Example #2
0
		public string PostTrack (Track track)
		{
			return string.Format ("The track title is: {0}.", track.Title);
		}