public int Add(Section section) { if (Sections.ContainsKey(section.Index)) { Sections[section.Index] = section; } else { Sections.Add(section.Index, section); } section.Controller = Controller; return section.Index; }