Esempio n. 1
0
        public async Task Publish()
        {
            var invoice = CreateInvoice();

            _repository.Add(invoice);

            await _uow.SaveChangesAsync();

            invoice.Code = Guid.NewGuid().ToString();

            _repository.Update(invoice);

            await _uow.SaveChangesAsync();
        }