Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

return json from controller c#

// you can use JsonResult
public JsonResult GetUsersData()  
        {  
            var users = GetUsers();  
            return Json(users, JsonRequestBehavior.AllowGet);  
        } 
 
PREVIOUS NEXT
Tagged: #return #json #controller
ADD COMMENT
Topic
Name
9+9 =