The process of direct democracy was quite simple as people gathered on the streets and took unanimous decisions however in modern context, when population has increased to huge level it is not possible to practice direct democracy.
Instead, people elect their respective representatives, who then combine together, to elect the prime minister.