예제 #1
0
        public HttpResponseMessage GetCurrency(byte currendyId)
        {
            try
            {
                Claims claims = new Claims().Values();

                CurrencyDTO currency = _CurrencyDao.Get(currendyId);

                return(Request.CreateResponse(HttpStatusCode.OK, currency));
            }
            catch (System.Exception e)
            {
                LogManager.Error("Erro ao consultar Moeda", e);
                return(Request.CreateErrorResponse(HttpStatusCode.InternalServerError, e));
            }
        }
예제 #2
0
        public HttpResponseMessage GetCurrency(byte id)
        {
            CurrencyDTO currency = _CurrencyDao.Get(id);

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