using Demo.Data.LocalData.Entity; using Demo.Domain.Models; using System.Collections.Generic; namespace Demo.Data.Repository { public class GroupRepositoryImpl { private List groups; public GroupRepositoryImpl() { groups = new List(); } public List GetAllGroups() { return groups; } public void AddGroup(ClassGroup group) { if (group == null) throw new ArgumentNullException(nameof(group)); groups.Add(group); } } }