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)); } }
public HttpResponseMessage GetCurrency(byte id) { CurrencyDTO currency = _CurrencyDao.Get(id); return(Request.CreateResponse(HttpStatusCode.OK, currency)); }