public Column(DataAccessLayer.Column c) { this.Name = c.name; this.Limit = c.limit; List <Task> tsk = new List <Task>(); this.Tasks = tsk; this.dal = c; List <DataAccessLayer.Task> tasks = TaskData.LoadTasks(this.dal.id); foreach (DataAccessLayer.Task t in tasks) { Tasks.Add(new Task(t)); } }
public void AddToDatabase(string email, int ordinal) { dal = new DataAccessLayer.Column(name, limit, email, ordinal); dal.Add(); }