public void UpdateBatch(ReceiptBatch batch, ApplicationDbContext context) { batch.TransactionSubTypeId = ReceiptTypeId; batch.ExpectedAmount = ExpectedAmount.GetValueOrDefault(); batch.Effective = EffectiveDate.Date; UpdateTransactions(batch, context); }
public ReceiptBatch BuildBatch(ApplicationDbContext context) { return(new ReceiptBatch { FundId = FundId, TransactionSubTypeId = ReceiptTypeId, ExpectedAmount = ExpectedAmount.GetValueOrDefault(), Effective = EffectiveDate.Date.ToUniversalTime() }); }