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

                IEnumerable <LanguageListDTO> languagesList = _LanguageDao.ListLanguages();

                return(Request.CreateResponse(HttpStatusCode.OK, languagesList));
            }
            catch (System.Exception e)
            {
                LogManager.Error("Erro ao consultar listagem de Idiomas", e);
                return(Request.CreateErrorResponse(HttpStatusCode.InternalServerError, e));
            }
        }
Example #2
0
        public HttpResponseMessage ListLanguages()
        {
            IEnumerable <LanguageListDTO> languagesList = _LanguageDao.ListLanguages();

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