// filter GL Account for scheme public ActionResult GetpID(string Class_Id) { var misdepartmentrepo = new Invest_Equity_CISRepo(); var mydata = misdepartmentrepo.GetECISPList(Class_Id); List <object> data = new List <object>(); foreach (var ddd in mydata) { string id = ddd.Product_Id; string name = ddd.Product_Name; data.Add(new { pId = id, pName = name }); } return(this.Store(data)); }