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); }
public GetFunctionWCF(IBllGet bllGet) { function = bllGet; }