Ejemplo n.º 1
0
        public virtual ApiSpaceFeatureResponseModel MapBOToModel(
            BOSpaceFeature boSpaceFeature)
        {
            var model = new ApiSpaceFeatureResponseModel();

            model.SetProperties(boSpaceFeature.Id, boSpaceFeature.Name, boSpaceFeature.StudioId);

            return(model);
        }
        public virtual BOSpaceFeature MapEFToBO(
            SpaceFeature ef)
        {
            var bo = new BOSpaceFeature();

            bo.SetProperties(
                ef.Id,
                ef.Name,
                ef.StudioId);
            return(bo);
        }
        public virtual SpaceFeature MapBOToEF(
            BOSpaceFeature bo)
        {
            SpaceFeature efSpaceFeature = new SpaceFeature();

            efSpaceFeature.SetProperties(
                bo.Id,
                bo.Name,
                bo.StudioId);
            return(efSpaceFeature);
        }
Ejemplo n.º 4
0
        public virtual BOSpaceFeature MapModelToBO(
            int id,
            ApiSpaceFeatureRequestModel model
            )
        {
            BOSpaceFeature boSpaceFeature = new BOSpaceFeature();

            boSpaceFeature.SetProperties(
                id,
                model.Name,
                model.StudioId);
            return(boSpaceFeature);
        }