static private void SelectDocument() { var Documents = new DocumentsController(); var SelectedDocumentId = Documents.Select(); var menu = new Menu(true); menu.Insert("Edit document", Documents.Edit); menu.Insert("Delete document", Documents.Delete); while (menu.SelectAct()) { ; } }