using Demo.Data.RemoteData.RemoteDataBase.DAO; // Используйте правильное пространство имен using Demo.Domain.UseCase; using System; namespace Demo.UI { public class GroupConsole { private readonly GroupUseCase _groupUseCase; public GroupConsole(GroupUseCase groupUseCase) { _groupUseCase = groupUseCase; } public void DisplayAllGroups() { var groups = _groupUseCase.GetAllGroups(); foreach (var group in groups) { Console.WriteLine($"ID: {group.Id}, Name: {group.Name}"); } } public void AddGroup(Group group) { _groupUseCase.AddGroup(group); Console.WriteLine("Group added."); } public void UpdateGroupName(int id, string name) { _groupUseCase.UpdateGroupName(id, name); Console.WriteLine("Group name updated."); } } }