Beispiel #1
0
        public HttpResponseMessage ListCountrys()
        {
            try
            {
                Claims claims = new Claims().Values();

                IEnumerable <CountryListDTO> CountryList = _CountryDao.ListCountrys();

                return(Request.CreateResponse(HttpStatusCode.OK, CountryList));
            }
            catch (System.Exception e)
            {
                LogManager.Error("Erro ao consultar listagem de Paises", e);
                return(Request.CreateErrorResponse(HttpStatusCode.InternalServerError, e));
            }
        }
Beispiel #2
0
        public HttpResponseMessage ListCountrys()
        {
            IEnumerable <CountryListDTO> CountryList = _CountryDao.ListCountrys();

            return(Request.CreateResponse(HttpStatusCode.OK, CountryList));
        }