public CreateLocationIndustryCommandValidatorTests()
 {
     this.createValidator = new CreateLocationIndustryCommandValidator();
     this.createCommand   = new CreateLocationIndustryCommand();
 }
コード例 #2
0
        public async Task <ActionResult> Create([FromForm] CreateLocationIndustryCommand command)
        {
            await Mediator.Send(command);

            return(NoContent());
        }