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); }
public int GetNewStatus() { var seller = new SellerInterface(); var answer = seller.ShowStatusMessage(); int result; int.TryParse(answer, out result); return(result); }
public decimal GetProductValue() { var sellerClient = new SellerInterface(); var answer = sellerClient.ProductValueMassage(); decimal result; decimal.TryParse(answer, out result); return(result); }
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); }
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); }