You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

23 lines
473 B

using System;
using System.Collections.Generic;
using System.Text;
namespace Apewer.AspNetBridge
{
/// <summary></summary>
public class JsonResult : HttpActionResult
{
/// <summary></summary>
public JsonResult(object content)
{
var json = Json.From(content);
var text = json == null ? "" : json.ToString();
Bytes = text.Bytes();
ContentType = "application/json";
}
}
}