コード例 #1
0
        public ActionResult <int> Post([FromBody] CreateTicketingRecordDTO request)
        {
            var command = new CreateTicketingRecordCommand(_mapper.Map <TicketingRecord>(request));
            var handler = _commandHandler.Build(command);

            return(Ok(handler.Execute()));
        }
コード例 #2
0
 public ICommandHandler <CreateTicketingRecordCommand, int> Build(CreateTicketingRecordCommand command)
 {
     return(new CreateTicketingRecordCommandHandler(_service, command));
 }