public virtual BOTicket MapEFToBO(
            Ticket ef)
        {
            var bo = new BOTicket();

            bo.SetProperties(
                ef.Id,
                ef.PublicId,
                ef.TicketStatusId);
            return(bo);
        }
Esempio n. 2
0
        public virtual BOTicket MapModelToBO(
            int id,
            ApiTicketRequestModel model
            )
        {
            BOTicket boTicket = new BOTicket();

            boTicket.SetProperties(
                id,
                model.PublicId,
                model.TicketStatusId);
            return(boTicket);
        }