25 lines
569 B
C#
25 lines
569 B
C#
|
using domain.Service;
|
|||
|
using System;
|
|||
|
using System.Collections.Generic;
|
|||
|
using System.Linq;
|
|||
|
using System.Text;
|
|||
|
using System.Threading.Tasks;
|
|||
|
|
|||
|
namespace console_ui
|
|||
|
{
|
|||
|
class GroupUI
|
|||
|
{
|
|||
|
private readonly GroupService _groupService;
|
|||
|
public GroupUI(GroupService groupService)
|
|||
|
{
|
|||
|
_groupService = groupService;
|
|||
|
}
|
|||
|
|
|||
|
public void AddGroup()
|
|||
|
{
|
|||
|
Console.WriteLine("Enter group name: ");
|
|||
|
_groupService.AddGroup(new domain.Request.AddGroupRequest { Name = Console.ReadLine() });
|
|||
|
}
|
|||
|
}
|
|||
|
}
|