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

            return(iou);
        }
Example #2
0
        public async Task CreateIOUAsync(IOU iou)
        {
            await context.AddAsync(iou);

            await context.SaveChangesAsync();
        }