17
Answers

How to return Json result to razor view in mvc 4

suman goud

suman goud

8y
535
1
data showing in json format in browser , but i want to send to view
 
[HttpGet]
public JsonResult GetProductID(int Eid)
{
_productModuleAPI = new ProductModuleAPI();
var productModules = _productModuleAPI.GetAll();
lvm2.ProductsModulesViewModel = productModules.ToList();
return Json(lvm2, JsonRequestBehavior.AllowGet);
}
 
Answers (17)