public static bool TuhuShopIsExisted(int shopid) { bool isTuhuExisted = true; using (var shopclient = new ShopClient()) { var tuhushopisExisted = shopclient.FetchShop(shopid); if (tuhushopisExisted != null && tuhushopisExisted.Result != null) { isTuhuExisted = false; } } return(isTuhuExisted); }
public ShopModel GetTuhuShop(int tuhuShopId) { ShopModel result = null; if (tuhuShopId > 0) { using (var client = new ShopClient()) { var serviceResult = client.FetchShop(tuhuShopId); if (serviceResult.Success && serviceResult.Result != null) { result = serviceResult.Result; } } } return(result); }