Exemplo n.º 1
0
        public ActionResult Add()
        {
            var command = new CreateNewNote();
            command.Id = Guid.NewGuid();

            return View(command);
        }
Exemplo n.º 2
0
        public ActionResult Add(CreateNewNote command)
        {
            ChannelHelper.Use(NoteController.channelFactory.CreateChannel(), (client) => client.Execute(new ExecuteRequest(command)));

            // Return user back to the index that
            // displays all the notes.));
            return RedirectToAction("Index", "Note");
        }