public JsonResult Get()
        {
            GetAllBookmarksRequest request   = new GetAllBookmarksRequest();
            List <Bookmark>        bookmarks = requestBus.ProcessRequest <GetAllBookmarksRequest, List <Bookmark> >(request);

            return(new JsonResult(bookmarks));
        }
        // GET: Bookmark
        public ActionResult Index()
        {
            GetAllBookmarksRequest request   = new GetAllBookmarksRequest();
            List <Bookmark>        bookmarks = requestBus.ProcessRequest <GetAllBookmarksRequest, List <Bookmark> >(request);

            BookmarksViewModel viewModel = new BookmarksViewModel(bookmarks);

            return(View(viewModel));
        }
        public void DisplayBookmarks()
        {
            GetAllBookmarksRequest request   = new GetAllBookmarksRequest();
            List <Bookmark>        bookmarks = requestBus.ProcessRequest <GetAllBookmarksRequest, List <Bookmark> >(request);

            BookmarksViewModel viewModel = new BookmarksViewModel(bookmarks);

            BookmarksView view = new BookmarksView(viewModel);

            view.Display();
        }
 public List <Bookmark> Handle(GetAllBookmarksRequest request)
 {
     return(bookmarkRepository.Get().ToList());
 }