@page "/accounts" Accounts

Accounts

Assigned Company Names

Tasks

{ @foreach (var tasks in accounts) {
  • @tasks.Tasks
  • } }
    @code { //var accounts = new List>> // accounts list //key: hubspot, value: key: call them, value: call today public Dictionary> accounts = new Dictionary>(); private string? newAccount; private string? newTask; private bool accountboxvalue { get; set; } private void toggle() { accountboxvalue = !accountboxvalue; } private void addAccount() { if (!string.IsNullOrWhiteSpace(newAccount)) { newAccount = new Dictionary>(); newAccount = string.Empty; } } //private void addTask() //{ // { // newTask = new Dictionary(); // string key = "accountboxvalue"; // if (accounts.TryGetValue(key, out tasks)) // { // tasks = new Dictionary(); // accounts.Add(key(key.ToString), tasks); // newTask = string.Empty; // } // return; // } // } }