public ViewResult Dialogs() { DialogRepository _dialogRepository = new DialogRepository(); return(View(_dialogRepository.GetAllMessages())); }