Пример #1
0
		public string ToJson()
		{
			JObject jobject = new JObject();
			jobject.AddCheck("_id", Id);
			jobject.AddCheck("pageNumber", PageNumber);
			jobject.AddCheck("displayPageNumber", DisplayPageNumber);
			return jobject.ToString();
		}
Пример #2
0
		public string ToJson()
		{
			JObject jobject = new JObject();
			jobject.AddCheck("_id", Id);
			jobject.AddCheck("name", Name);
			jobject.AddCheck("publisher", Publisher);
			jobject.AddCheck("dateFrom", DateFrom);
			jobject.AddCheck("dateTo", DateTo);
			return jobject.ToString();
		}
Пример #3
0
		public string ToJson()
		{
			JObject jobject = new JObject();
			jobject.AddCheck("_id", Id);
			jobject.AddCheck("title", Title);
			jobject.AddCheck("composer", Composer);
			jobject.AddCheck("editor", Editor);
			jobject.AddCheck("verses", Verses);

			if (MusicalSourceReference != null)
				jobject.Add("musicalSource", MusicalSourceReference);
			if (TextualSourceReference != null)
				jobject.Add("textualSource", TextualSourceReference);
			
			return jobject.ToString();
		}