Exemplo n.º 1
0
        private SqlCommand buildCmd(TicketDTO ticket)
        {
            SqlCommand cmd = new SqlCommand();

            cmd.Parameters.AddWithValue("ID", ticket.getID());
            cmd.Parameters.AddWithValue("ShowID", ticket.getShowID());
            cmd.Parameters.AddWithValue("Row", ticket.getRow());
            cmd.Parameters.AddWithValue("Col", ticket.getColumn());
            return(cmd);
        }
Exemplo n.º 2
0
        public TicketModel map(TicketDTO ticketdto)
        {
            TicketModel model = new TicketModel();

            model.setID(ticketdto.getID());
            model.setShowID(ticketdto.getShowID());
            model.setRow(ticketdto.getRow());
            model.setColumn(ticketdto.getColumn());

            return(model);
        }