Exemple #1
0
        public int GetProductId(ProductData productData, string companyName)
        {
            var sellerClient = new SellerInterface();
            var answer       = sellerClient.ShowProducts(productData, companyName);
            int result;

            int.TryParse(answer, out result);
            return(result);
        }
Exemple #2
0
        public int GetNewStatus()
        {
            var seller = new SellerInterface();
            var answer = seller.ShowStatusMessage();
            int result;

            int.TryParse(answer, out result);
            return(result);
        }
Exemple #3
0
        public decimal GetProductValue()
        {
            var     sellerClient = new SellerInterface();
            var     answer       = sellerClient.ProductValueMassage();
            decimal result;

            decimal.TryParse(answer, out result);
            return(result);
        }
Exemple #4
0
        public int GetOrderID(OrderData orderData, string companyName)
        {
            var seller = new SellerInterface();
            var answer = seller.ShowOrdersStatus(orderData, companyName);
            int result;

            int.TryParse(answer, out result);
            return(result);
        }
Exemple #5
0
        public int GetResult(bool isExist)
        {
            var result = 2;

            if (isExist)
            {
                var sellerClient = new SellerInterface();
                var answer       = sellerClient.ExistMassage();
                int.TryParse(answer, out result);
            }
            return(result);
        }