Пример #1
0
        public ActionResult AddBookmark(AddBookmark input)
        {
            var bookmark = new Bookmark
            {
                Notes = input.Notes,
                Url = input.Url
            };

            SaveBookmark.Execute(bookmark);

            return RedirectToAction("Index");
        }
Пример #2
0
        public ViewResult AddBookmark()
        {
            var model = new AddBookmark();

            return View(model);
        }