public List <Country> GetCountriesAPI()
 {
     try
     {
         using (PublicBL publicBL = new PublicBL())
         {
             var countires = publicBL.GetCountries();
             return(countires);
         }
     }
     catch (Exception ex)
     {
         // LoggedError(ex.Message);
         return(null);
     }
 }
예제 #2
0
        // 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);
            }
        }