public string GetAllArea(string CountryId) { List <GetAllAreas_Result> obj = new List <GetAllAreas_Result>(); using (var entities = new SedapExpressEntities()) { obj = entities.GetAllAreas(CountryId).ToList <GetAllAreas_Result>(); } return(JsonConvert.SerializeObject(obj)); }