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)); } }
public HttpResponseMessage ListLanguages() { IEnumerable <LanguageListDTO> languagesList = _LanguageDao.ListLanguages(); return(Request.CreateResponse(HttpStatusCode.OK, languagesList)); }