public JsonResult GetDisptachIds() { GetStoreId(); List <string> listParty = new List <string>(); listParty = objDal.GetDisptachIds(StoreId); var Result = new { page = 1, records = listParty.Count(), rows = listParty, total = 1 }; return(Json(Result, JsonRequestBehavior.AllowGet)); }