// [Authorize(Roles = "Admin")]
        //[Authorize(Policy = Permissions.Categories.Create)]

        public async Task <IActionResult> Post(CreateIndustryCommand command)
        {
            return(Ok(await _mediator.Send(command)));
        }
        public async Task <ActionResult> Create([FromForm] CreateIndustryCommand command)
        {
            await Mediator.Send(command);

            return(NoContent());
        }
 public CreateIndustryCommandValidatorTests()
 {
     this.createValidator = new CreateIndustryCommandValidator();
     this.createCommand   = new CreateIndustryCommand();
 }