开发者

Pass object using JSON

right now i am using Json for passing status and message like

return Json(new { Success = true, Message = "Save 开发者_JAVA百科successfully" });

 Project model=new Project()

Is there any way, i can send model in json also?

I am using c# and asp.net mvc


Yes - it is very easy. The Json method accepts any object:

return Json(new Project());
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜