I returned json result from a controller but how can i add a view that uses this json result..
public class MaterialsController : Controller
{
ConstructionRepository consRepository = new ConstructionRepository();
public JsonResult Index()
{
var materials = consRepository.FindAllMaterials().AsQueryable();
return Json(materials);
}
}
How to add a view to this? Any suggestion...