public List <Country> GetCountriesAPI() { try { using (PublicBL publicBL = new PublicBL()) { var countires = publicBL.GetCountries(); return(countires); } } catch (Exception ex) { // LoggedError(ex.Message); return(null); } }
// GET Countries LookUp public ActionResult GetCountriesAPI() { try { using (PublicBL publicBL = new PublicBL()) { var countries = publicBL.GetCountries(); return(Json(countries)); } } catch (Exception ex) { LoggedError(ex.Message); return(null); } }