suman goud

suman goud

  • NA
  • 176
  • 54.1k

How to return Json result to razor view in mvc 4

Dec 7 2016 4:49 AM
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)