示例#1
0
        public virtual ApiBucketResponseModel MapBOToModel(
            BOBucket boBucket)
        {
            var model = new ApiBucketResponseModel();

            model.SetProperties(boBucket.Id, boBucket.ExternalId, boBucket.Name);

            return(model);
        }
示例#2
0
        public virtual BOBucket MapEFToBO(
            Bucket ef)
        {
            var bo = new BOBucket();

            bo.SetProperties(
                ef.Id,
                ef.ExternalId,
                ef.Name);
            return(bo);
        }
示例#3
0
        public virtual Bucket MapBOToEF(
            BOBucket bo)
        {
            Bucket efBucket = new Bucket();

            efBucket.SetProperties(
                bo.ExternalId,
                bo.Id,
                bo.Name);
            return(efBucket);
        }
示例#4
0
        public virtual BOBucket MapModelToBO(
            int id,
            ApiBucketRequestModel model
            )
        {
            BOBucket boBucket = new BOBucket();

            boBucket.SetProperties(
                id,
                model.ExternalId,
                model.Name);
            return(boBucket);
        }