예제 #1
0
        public virtual ApiChainResponseModel MapBOToModel(
            BOChain boChain)
        {
            var model = new ApiChainResponseModel();

            model.SetProperties(boChain.Id, boChain.ChainStatusId, boChain.ExternalId, boChain.Name, boChain.TeamId);

            return(model);
        }
예제 #2
0
        public virtual BOChain MapEFToBO(
            Chain ef)
        {
            var bo = new BOChain();

            bo.SetProperties(
                ef.Id,
                ef.ChainStatusId,
                ef.ExternalId,
                ef.Name,
                ef.TeamId);
            return(bo);
        }
예제 #3
0
        public virtual Chain MapBOToEF(
            BOChain bo)
        {
            Chain efChain = new Chain();

            efChain.SetProperties(
                bo.ChainStatusId,
                bo.ExternalId,
                bo.Id,
                bo.Name,
                bo.TeamId);
            return(efChain);
        }
예제 #4
0
        public virtual BOChain MapModelToBO(
            int id,
            ApiChainRequestModel model
            )
        {
            BOChain boChain = new BOChain();

            boChain.SetProperties(
                id,
                model.ChainStatusId,
                model.ExternalId,
                model.Name,
                model.TeamId);
            return(boChain);
        }