// GET api/<controller>/5
        public HttpResponseMessage Get(int id)
        {
            var editora = EditoraRepositorio.ObterPeloId(id);

            if (editora == null)
            {
                return(new HttpResponseMessage(HttpStatusCode.NotFound));
            }
            return(Request.CreateResponse(HttpStatusCode.OK,
                                          EditoraRepositorio.GerarDto(EditoraRepositorio.ObterPeloId(id))));
        }
 // GET api/<controller>
 public IEnumerable <EditoraDto> Get()
 {
     return(EditoraRepositorio.GerarDto(EditoraRepositorio.Listar()));
 }