@page "/accounts"
@inherits ActLogic
Accounts
Accounts
@code {
// Using Cascading Parameters
[Parameter]
public string? Account;
[CascadingParameter]
public string? AccountTask;
[CascadingParameter]
public string? TaskNote;
private string? newAccount;
private List accounts = new List();
private Dictionary tasks = new();
private string? newTask;
private bool accountboxvalue { get; set; }
private void toggle()
{
accountboxvalue = !accountboxvalue;
}
private void addAccount()
{
if (!string.IsNullOrWhiteSpace(newAccount))
{
Account accounts = new Account(AccountName, tasks, LastContacted);
accounts.Add(accounts);
Account newAccount = new Account{newAccount};
accounts.Add(new Account { AccountName = newAccount });
newAccount = string.Empty;
}
}
private void addTask()
{
{
if (!string.IsNullOrWhiteSpace(newTask))
{
if (Account.Equals(accountboxvalue));
{
tasks.Add(newTask, "");
newTask = string.Empty;
}
}
}
}
}