2024-11-18 16:36:42 +00:00
|
|
|
|
using domain.Request;
|
|
|
|
|
using domain.Service;
|
|
|
|
|
using domain.UseCase;
|
2024-11-16 21:45:57 +00:00
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Text;
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
|
|
|
|
namespace console_ui
|
|
|
|
|
{
|
|
|
|
|
class GroupUI
|
|
|
|
|
{
|
2024-11-18 16:36:42 +00:00
|
|
|
|
private readonly IGroupUseCase _groupService;
|
|
|
|
|
public GroupUI(IGroupUseCase groupService)
|
2024-11-16 21:45:57 +00:00
|
|
|
|
{
|
|
|
|
|
_groupService = groupService;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void AddGroup()
|
|
|
|
|
{
|
|
|
|
|
Console.WriteLine("Enter group name: ");
|
|
|
|
|
_groupService.AddGroup(new domain.Request.AddGroupRequest { Name = Console.ReadLine() });
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|