Beispiel #1
0
        public virtual ApiTicketResponseModel MapBOToModel(
            BOTicket boTicket)
        {
            var model = new ApiTicketResponseModel();

            model.SetProperties(boTicket.Id, boTicket.PublicId, boTicket.TicketStatusId);

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

            bo.SetProperties(
                ef.Id,
                ef.PublicId,
                ef.TicketStatusId);
            return(bo);
        }
        public virtual Ticket MapBOToEF(
            BOTicket bo)
        {
            Ticket efTicket = new Ticket();

            efTicket.SetProperties(
                bo.Id,
                bo.PublicId,
                bo.TicketStatusId);
            return(efTicket);
        }
Beispiel #4
0
        public virtual BOTicket MapModelToBO(
            int id,
            ApiTicketRequestModel model
            )
        {
            BOTicket boTicket = new BOTicket();

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