Exemplo n.º 1
0
        public ActionResult <Pedido> Get(int id)
        {
            var retorno = _servico.BuscarPorId(id);

            if (retorno == null)
            {
                return(NotFound());
            }
            return(Ok(retorno.Dados));
        }