public ActionResult <int> Post([FromBody] CreateTicketingRecordDTO request) { var command = new CreateTicketingRecordCommand(_mapper.Map <TicketingRecord>(request)); var handler = _commandHandler.Build(command); return(Ok(handler.Execute())); }
public ICommandHandler <CreateTicketingRecordCommand, int> Build(CreateTicketingRecordCommand command) { return(new CreateTicketingRecordCommandHandler(_service, command)); }