public virtual ApiTicketStatusResponseModel MapBOToModel(
            BOTicketStatus boTicketStatus)
        {
            var model = new ApiTicketStatusResponseModel();

            model.SetProperties(boTicketStatus.Id, boTicketStatus.Name);

            return(model);
        }
Exemple #2
0
        public virtual BOTicketStatus MapEFToBO(
            TicketStatus ef)
        {
            var bo = new BOTicketStatus();

            bo.SetProperties(
                ef.Id,
                ef.Name);
            return(bo);
        }
Exemple #3
0
        public virtual TicketStatus MapBOToEF(
            BOTicketStatus bo)
        {
            TicketStatus efTicketStatus = new TicketStatus();

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

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