예제 #1
0
        public Enderecos GetCliente(int id)
        {
            Enderecos item = repositorio.Get(id);

            if (item == null)
            {
                throw new HttpResponseException(HttpStatusCode.NotFound);
            }
            return(item);
        }
예제 #2
0
 public List <Endereco> Get()
 {
     return(_repositorio.Get());
 }