コード例 #1
0
        public virtual ApiLocationResponseModel MapBOToModel(
            BOLocation boLocation)
        {
            var model = new ApiLocationResponseModel();

            model.SetProperties(boLocation.LocationID, boLocation.Availability, boLocation.CostRate, boLocation.ModifiedDate, boLocation.Name);

            return(model);
        }
コード例 #2
0
        public virtual BOLocation MapEFToBO(
            Location ef)
        {
            var bo = new BOLocation();

            bo.SetProperties(
                ef.LocationID,
                ef.Availability,
                ef.CostRate,
                ef.ModifiedDate,
                ef.Name);
            return(bo);
        }
コード例 #3
0
        public virtual Location MapBOToEF(
            BOLocation bo)
        {
            Location efLocation = new Location();

            efLocation.SetProperties(
                bo.Availability,
                bo.CostRate,
                bo.LocationID,
                bo.ModifiedDate,
                bo.Name);
            return(efLocation);
        }
コード例 #4
0
        public virtual BOLocation MapModelToBO(
            short locationID,
            ApiLocationRequestModel model
            )
        {
            BOLocation boLocation = new BOLocation();

            boLocation.SetProperties(
                locationID,
                model.Availability,
                model.CostRate,
                model.ModifiedDate,
                model.Name);
            return(boLocation);
        }