public virtual ApiSaleTicketsResponseModel MapBOToModel(
            BOSaleTickets boSaleTickets)
        {
            var model = new ApiSaleTicketsResponseModel();

            model.SetProperties(boSaleTickets.Id, boSaleTickets.SaleId, boSaleTickets.TicketId);

            return(model);
        }
Example #2
0
        public virtual BOSaleTickets MapEFToBO(
            SaleTickets ef)
        {
            var bo = new BOSaleTickets();

            bo.SetProperties(
                ef.Id,
                ef.SaleId,
                ef.TicketId);
            return(bo);
        }
Example #3
0
        public virtual SaleTickets MapBOToEF(
            BOSaleTickets bo)
        {
            SaleTickets efSaleTickets = new SaleTickets();

            efSaleTickets.SetProperties(
                bo.Id,
                bo.SaleId,
                bo.TicketId);
            return(efSaleTickets);
        }
        public virtual BOSaleTickets MapModelToBO(
            int id,
            ApiSaleTicketsRequestModel model
            )
        {
            BOSaleTickets boSaleTickets = new BOSaleTickets();

            boSaleTickets.SetProperties(
                id,
                model.SaleId,
                model.TicketId);
            return(boSaleTickets);
        }