public void ValidateAddCatalogCommand(AddCatalogCommand command) { _commandValidator.ValidateAndThrow(command); GetCatalogBrand(command.CatalogBrandId); GetCatalogType(command.CatalogTypeId); }
public void Handle(AddCatalogCommand message) { this.Handle(message.AcSession, message.Input, true); }
public async Task <ActionResult> AddCatalog([FromBody] AddCatalogCommand request) { var result = await _mediator.Send(request); return(new JsonResult(result)); }