Exemple #1
0
        /// <summary>
        /// Returns a <see cref="System.String" /> that represents this instance.
        /// </summary>
        /// <returns>A <see cref="System.String" /> that represents this instance.</returns>
        public override string ToString()
        {
            var serializer = new JsonResolver();

            var serializedObject = serializer.Serialize(this);
            return serializedObject;
        }
        /// <summary>
        /// Events this instance.
        /// </summary>
        /// <returns>ActionResult.</returns>
        public ActionResult Events()
        {
            var resolver = new JsonResolver();
            var evt = GetEvents();

            return Content(resolver.Serialize(evt), "application/json");
        }