Exemplo n.º 1
0
        public async Task <IActionResult> Contacts([FromForm] CreateContactFormCommand command)
        {
            await Mediator.Send(command);

            return(this.Redirect("/"));
        }
Exemplo n.º 2
0
 public CreateContactFormCommandValidatorTests()
 {
     this.createValidator = new CreateContactFormCommandValidator();
     this.createCommand   = new CreateContactFormCommand();
 }