public IOU CreateIOU() { var iou = new IOU() { Id = Guid.NewGuid(), LenderId = Lender, BorrowerId = Borrower, Amount = Amount, DateCreatedUTC = DateTime.UtcNow }; return(iou); }
public async Task CreateIOUAsync(IOU iou) { await context.AddAsync(iou); await context.SaveChangesAsync(); }