Thursday 27 July 2017

var serializer = new JavaScriptSerializer();
serializer.MaxJsonLength = Int32.MaxValue;
var recordData = new { Name= "Hamid", Id= "SE2010" };
var result = new ContentResult{
    Content = serializer.Serialize(recordData ),
    ContentType = "application/json"
};
return result;

No comments:

Post a Comment