Exemplo n.º 1
0
        public IOU CreateIOU()
        {
            var iou = new IOU()
            {
                Id             = Guid.NewGuid(),
                LenderId       = Lender,
                BorrowerId     = Borrower,
                Amount         = Amount,
                DateCreatedUTC = DateTime.UtcNow
            };

            return(iou);
        }
Exemplo n.º 2
0
        public async Task CreateIOUAsync(IOU iou)
        {
            await context.AddAsync(iou);

            await context.SaveChangesAsync();
        }