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 mvcYes - it is very easy. The Json
method accepts any object:
return Json(new Project());
精彩评论