public void DisplayItems(FundRequestDTO req) { Items.Clear(); Items.Add(AllocationVM.CashInBank(_arg.AccountName)); req.Allocations?.ForEach(_ => Items.Add(new AllocationVM(_))); CanAddItem = false; }
internal void UpdateBaseAmount(decimal?amount) { if (amount == Items[0].Credit) { return; } Items.RemoveAt(0); Items.Insert(0, AllocationVM.CashInBank(_arg.AccountName, amount)); CanAddItem = amount.HasValue && amount > 0; }