public JsonResult tabledata(string tblname) { BusssinessLogic objbal = new BusssinessLogic(); List <Groups> lstgrp = new List <Groups>(); try { lstgrp = objbal.Bltbldata(tblname); } catch (Exception ex) { throw ex; } return(Json(lstgrp, JsonRequestBehavior.AllowGet)); }