コード例 #1
0
        public static ServicesWCF ConvertServicesToWcf(BllServices bllServices)
        {
            ServicesWCF wcfService = new ServicesWCF()
            {
                Name  = bllServices.Name,
                Price = bllServices.Price,
                Id    = bllServices.Id,
                //  Materials=bllServices.BllMaterials
            };

            return(wcfService);
        }
コード例 #2
0
        public static BllServices ConvertServicesToBll(ServicesWCF dTODalService)
        {
            BllServices bllServices = new BllServices()
            {
                Name  = dTODalService.Name,
                Price = dTODalService.Price,
                Id    = dTODalService.Id,
                //BllMaterials= dTODalService.Id
            };

            return(bllServices);
        }