public HttpResponseMessage GetCountry(int countryId) { try { Claims claims = new Claims().Values(); CountryDTO country = _CountryDao.Get(countryId); return(Request.CreateResponse(HttpStatusCode.OK, country)); } catch (System.Exception e) { LogManager.Error("Erro ao consultar País", e); return(Request.CreateErrorResponse(HttpStatusCode.InternalServerError, e)); } }
public HttpResponseMessage GetCountry(int id) { CountryDTO country = _CountryDao.Get(id); return(Request.CreateResponse(HttpStatusCode.OK, country)); }