Пример #1
0
        public bool isValidProductDetail(Dictionary <string, object> productDetail, string productType)
        {
            var           hasil = false;
            InstanceObjek obj   = new InstanceObjek();
            var           temp  = obj.objekProductDetail();

            if (productType.Equals(temp) && productDetail.Equals(temp))
            {
                hasil = true;
            }

            return(hasil);
        }
Пример #2
0
        public bool isValidProductDetail(ProductsDetails productDetail, string productType)
        {
            InstanceObjek obj   = new InstanceObjek();
            var           temp  = obj.objekProductDetail();
            var           hasil = false;

            if (productDetail == temp)
            {
                hasil = true;
            }
            else
            {
                hasil = false;
            }

            return(hasil);
        }