public InlineKeyboardMarkup CreateInlineMenu(ICollection <Group> facultyGroups)
 {
     return(_facultyGroupsInlineMenuCreator.CreateMenu(new FacultyGroupsInlineMenuOptions
     {
         FacultyGroups = facultyGroups,
         CallbackActionType = CallbackQueryActionType.RemoveGroup,
         AdditionalButtons = new[]
         { _backInlineButtonCreator.Create(CallbackQueryActionType.ShowTimetableFacultyGroupsMenu) }
     }));
 }
Exemple #2
0
        public InlineKeyboardMarkup CreateInlineMenu(ICollection <Group> facultyGroups)
        {
            var facultyGroupsInlineMenuOptions = new FacultyGroupsInlineMenuOptions
            {
                FacultyGroups      = facultyGroups,
                CallbackActionType = TimetableFacultyGroupsMenuGroupSelected,
                AdditionalButtons  = new [] { CreateAddGroupButton(), CreateRemoveGroupButton() }
            };

            return(_facultyGroupsInlineMenuCreator.CreateMenu(facultyGroupsInlineMenuOptions));
        }