Ejemplo n.º 1
0
        // GET: api/Lookup/5
        public HttpResponseMessage Get(int id)
        {
            var address = _addressServices.GetById(id);

            return(address != null
                ? Request.CreateResponse(HttpStatusCode.OK, address)
                : Request.CreateErrorResponse(HttpStatusCode.NotFound, "No Address found for this id"));
        }