Пример #1
0
        public virtual BOTicketStatus MapEFToBO(
            TicketStatus ef)
        {
            var bo = new BOTicketStatus();

            bo.SetProperties(
                ef.Id,
                ef.Name);
            return(bo);
        }
        public virtual BOTicketStatus MapModelToBO(
            int id,
            ApiTicketStatusRequestModel model
            )
        {
            BOTicketStatus boTicketStatus = new BOTicketStatus();

            boTicketStatus.SetProperties(
                id,
                model.Name);
            return(boTicketStatus);
        }