Perepis/ui/GroupUI.cs

25 lines
657 B
C#
Raw Permalink Normal View History

2024-11-08 08:08:54 +00:00
using domain;
using domain.Models.RequestModels;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ui
{
public class GroupUI
{
private readonly GroupUseCase _groupUseCase;
public GroupUI(GroupUseCase groupUseCase) {
_groupUseCase = groupUseCase;
}
public void AddGroup() {
Console.WriteLine("Введите название группы: ");
GroupAddRequest groupAddRequest = new GroupAddRequest { Name = Console.ReadLine()};
_groupUseCase.addGroup(groupAddRequest);
}
}
}