Example #1
0
        public Ticket find(int idTicket)
        {
            TicketService.TicketService ticketservice = new TicketService.TicketService();
            Ticket ticketBuscado = ticketservice.find(idTicket);

            return(ticketBuscado);
        }
Example #2
0
        public TicketDetalle addTicketDetalle(int idProductoDetalle, decimal precioUnitarioTicketDetalle, int cantidadTicketDetalle, int idTicket)
        {
            TicketService.TicketService ticketService = new TicketService.TicketService();
            Ticket miTicket = ticketService.find(idTicket);

            TicketService.TicketDetalleService ticketdetalleservice = new TicketService.TicketDetalleService();
            TicketDetalle ticketdetallenew = ticketdetalleservice.addTicketDetalle(idProductoDetalle, precioUnitarioTicketDetalle, cantidadTicketDetalle, miTicket);

            return(ticketdetallenew);
        }