public HttpResponseMessage GetNeighbourhood(int neighbourhoodId) { try { Claims claims = new Claims().Values(); NeighbourhoodDTO neighbourhood = _NeighbourhoodDao.Get(neighbourhoodId); return(Request.CreateResponse(HttpStatusCode.OK, neighbourhood)); } catch (System.Exception e) { LogManager.Error("Erro ao consultar Bairro", e); return(Request.CreateErrorResponse(HttpStatusCode.InternalServerError, e)); } }
public HttpResponseMessage GetNeighbourhood(int id) { NeighbourhoodDTO neighbourhood = _NeighbourhoodDao.Get(id); return(Request.CreateResponse(HttpStatusCode.OK, neighbourhood)); }