Example #1
0
        public virtual ApiChainStatusResponseModel MapBOToModel(
            BOChainStatus boChainStatus)
        {
            var model = new ApiChainStatusResponseModel();

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

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

            bo.SetProperties(
                ef.Id,
                ef.Name);
            return(bo);
        }
Example #3
0
        public virtual ChainStatus MapBOToEF(
            BOChainStatus bo)
        {
            ChainStatus efChainStatus = new ChainStatus();

            efChainStatus.SetProperties(
                bo.Id,
                bo.Name);
            return(efChainStatus);
        }
Example #4
0
        public virtual BOChainStatus MapModelToBO(
            int id,
            ApiChainStatusRequestModel model
            )
        {
            BOChainStatus boChainStatus = new BOChainStatus();

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