internal byte[] HandlePurchasePolicy(string json) { GetPurchasePolicyRequest res = JsonConvert.DeserializeObject <GetPurchasePolicyRequest>(json); string ans = storeService.GetPurchasePolicy(res.StoreID); string jsonAns = Seralize(new GetPurchasePolicyResponse(ans)); return(security.Encrypt(jsonAns)); }
async public Task <string> GetPurchasePolicy(int StoreId) { GetPurchasePolicyRequest request = new GetPurchasePolicyRequest(StoreId); comm.SendRequest(request); GetPurchasePolicyResponse response = await comm.Get <GetPurchasePolicyResponse>(); return(response.PurchasePolicy); }