Beispiel #1
0
        public static BllMaterials ConvertMaterialsToDB(MaterialsWCF tmpMaterial)
        {
            IBllGet      get         = null;
            BllMaterials getmaterial = null;

            if (tmpMaterial is BalsamWCF)
            {
                getmaterial = ConvertBalsamToBll(tmpMaterial as BalsamWCF);
            }
            else if (tmpMaterial is ShampooWCF)
            {
                getmaterial = ConvertShampoToBLL(tmpMaterial as ShampooWCF);
            }
            else if (tmpMaterial is LaqueWCF)
            {
                getmaterial = ConvertLaqueToBll(tmpMaterial as LaqueWCF);
            }
            else if (tmpMaterial is ColorWCF)
            {
                getmaterial = ConvertColorToBll(tmpMaterial as ColorWCF);
            }
            else if (tmpMaterial is PowderWCF)
            {
                getmaterial = ConvertPowderToBll(tmpMaterial as PowderWCF);
            }
            else if (tmpMaterial is FoundationWCF)
            {
                getmaterial = ConvertFoundationToBll(tmpMaterial as FoundationWCF);
            }
            else if (tmpMaterial is MascaraWCF)
            {
                getmaterial = ConvertMascaraToBll(tmpMaterial as MascaraWCF);
            }
            else if (tmpMaterial is LipstickWCF)
            {
                getmaterial = ConvertLipstickToBLL(tmpMaterial as LipstickWCF);
            }
            else if (tmpMaterial is ShadowsWCF)
            {
                getmaterial = ConvertShadowToBll(tmpMaterial as ShadowsWCF);
            }
            else if (tmpMaterial is NailBaseWCF)
            {
                getmaterial = ConvertBaseToBll(tmpMaterial as NailBaseWCF);
            }
            else if (tmpMaterial is NailTopWCF)
            {
                getmaterial = ConvertTopTOBLL(tmpMaterial as NailTopWCF);
            }
            else if (tmpMaterial is NailPolishWCF)
            {
                getmaterial = ConvertPolishToBLL(tmpMaterial as NailPolishWCF);
            }
            return(getmaterial);
        }
Beispiel #2
0
        // materials
        public static MaterialsWCF ConvertWcfMaterials(BllMaterials tmpMaterial)
        {
            MaterialsWCF getmaterial = null;

            if (tmpMaterial is BllBalsam)
            {
                getmaterial = ConvertBalsamToWcf(tmpMaterial as BllBalsam);
            }
            else if (tmpMaterial is BllShampoo)
            {
                getmaterial = ConvertShampooToWCF(tmpMaterial as BllShampoo);
            }
            else if (tmpMaterial is BllLaque)
            {
                getmaterial = ConvertLaqueToWcf(tmpMaterial as BllLaque);
            }
            else if (tmpMaterial is BllColor)
            {
                getmaterial = ConvertColorToWcf(tmpMaterial as BllColor);
            }
            else if (tmpMaterial is BllPowder)
            {
                getmaterial = ConvertPowderToWCF(tmpMaterial as BllPowder);
            }
            else if (tmpMaterial is BllFoundation)
            {
                getmaterial = ConvertFoundationTowcf(tmpMaterial as BllFoundation);
            }
            else if (tmpMaterial is BllMascara)
            {
                getmaterial = ConvertMascaraToWcf(tmpMaterial as BllMascara);
            }
            else if (tmpMaterial is BllLipstick)
            {
                getmaterial = ConvertLipstickTowcf(tmpMaterial as BllLipstick);
            }
            else if (tmpMaterial is BllShadows)
            {
                getmaterial = ConvertShadowToWcf(tmpMaterial as BllShadows);
            }
            else if (tmpMaterial is BllNailBase)
            {
                getmaterial = ConvertBaseToWCF(tmpMaterial as BllNailBase);
            }
            else if (tmpMaterial is BllNailTop)
            {
                getmaterial = ConvertTopToWcf(tmpMaterial as BllNailTop);
            }
            else if (tmpMaterial is BllNailPolish)
            {
                getmaterial = ConvertPolishToWcf(tmpMaterial as BllNailPolish);
            }
            return(getmaterial);
        }
 public void AddMaterialsToDB(MaterialsWCF materialsWCF)
 {
     function.AddMaterialToDB(ConvertationsWCF.ConvertMaterialsToDB(materialsWCF));
 }
 public void AddMaterials(MaterialsWCF materialsWCF)
 {
     addFunctionWCF.AddMaterialsToDB(materialsWCF);
 }
 public void UpdateMaterials(MaterialsWCF materialsWCF)
 {
     updateFunctionWCF.UpdateMaterials(materialsWCF);
 }
 public void UpdateMaterials(MaterialsWCF materialsWCF)
 {
     function.UpdateMaterial(ConvertationsWCF.ConvertMaterialsToDB(materialsWCF));
 }