public JsonResult GetEODMonths() { GetStoreId(); DataSet dsMonthYear = objDal.GetEODMonths(StoreId); dsMonthYear = objDal.GetEODMonths(StoreId); var monthYear = dsMonthYear.Tables[0].AsEnumerable(). Select(datarow => datarow.Field <string>("MonthYear")).ToList(); var Result = new { page = 1, records = monthYear.Count(), rows = monthYear, total = 1 }; return(Json(Result, JsonRequestBehavior.AllowGet)); }