Ok, look how you build the object:
new JsonResult { Data = L, JsonRequestBehavior = JsonRequestBehavior.AllowGet }
You set a variable Lto a property with a name Data. So just read this property:
List<layouts> L = (List<layouts>)result.Data;
There is nothing special in that this is an action of the MVC controller.
You simply call a method that returns the object that was constructed in the method and reads the properties from that object. Like any other C # code.
David source
share