public IsWinningTicketProcessorResult Process(TicketModel model)
        {
            var entity = Mapper.Map<Ticket>(model);

            var result = _command.Execute(entity);

            return new IsWinningTicketProcessorResult(result);
        }
Exemplo n.º 2
0
 public IsWinningTicketProcessorResult GetIsWinningTicket(TicketModel ticket)
 {
     var processor = new IsWinningTicketProcessor();
     return processor.Process(ticket);
 }