Esempio n. 1
0
        public async Task <ActionResult <bool> > Start2()
        {
            var command = new AddNewAuthorCommand("Moshe2", new List <Book>()
            {
                new Book("book3"), new Book("book4")
            });
            var result = await _mediator.Send(command);

            return(result);
        }
Esempio n. 2
0
        public async Task <ActionResult <bool> > Start()
        {
            var command = new AddNewAuthorCommand("Moshe", new List <Book>()
            {
                new Book("book1", "publisherAAA"), new Book("book2", "publisherBBB")
            });
            var result = await _mediator.Send(command);

            return(result);
        }