public ActionResult Listar()
        {
            var response = _appProduto.Get();

            if (response.Status != HttpStatusCode.OK)
            {
                return(Error(response.ContentAsString));
            }

            return(View("GridProdutos", response.Content));
        }
        public ActionResult Cadastrar()
        {
            //Trazendo a lista de clientes
            var responseClientes = _appCliente.Get();

            if (responseClientes.Status != HttpStatusCode.OK)
            {
                return(Error(responseClientes.ContentAsString));
            }

            //Trazendo a lista de produtos
            var responseProdutos = _appProduto.Get();

            if (responseProdutos.Status != HttpStatusCode.OK)
            {
                return(Error(responseProdutos.ContentAsString));
            }

            return(View("CadastraVenda", new Venda
            {
                Clientes = new SelectList(responseClientes.Content, "CodigoCliente", "Nome"),
                Itens = responseProdutos.Content
            }));
        }