public async Task <JsonResult> GetCountryList() { DataTableResultModel <CountryModel> resultModel = await _country.GetCountryList(); return(await Task.Run(() => { return Json(new { draw = 1, data = resultModel.ResultList }); })); }
public JsonResult GetCountries() { List <Country> countries = _country.GetCountryList(); return(Json(countries, JsonRequestBehavior.AllowGet)); }