Example #1
0
        public void Serialize(ControllerContext context, object model, ContentType responseFormat)
        {
            DataContractJsonActionResult json = new DataContractJsonActionResult(
                model,
                responseFormat
                );

            json.ExecuteResult(context);
        }
 public void Serialize(ControllerContext context, object model, ContentType responseFormat)
 {
     DataContractJsonActionResult json = new DataContractJsonActionResult(model, responseFormat);
     json.ExecuteResult(context);
 }