Ejemplo n.º 1
0
        public async Task InserirPedido(Pedido obj)
        {
            await _repositoryPedido.AddAsync(obj);

            await _repositoryPedido.SaveChangesAsync();

            _repositoryPedido.CarregaPedido(obj);
            await _repositoryPedido.UpdateAsync(obj);

            await _repositoryPedido.SaveChangesAsync();
        }