internal byte[] HandleDiscountPolicy(string json) { GetDiscountPolicyRequest res = JsonConvert.DeserializeObject <GetDiscountPolicyRequest>(json); string ans = storeService.GetDiscountPolicy(res.StoreID); string jsonAns = Seralize(new GetDiscountPolicyResponse(ans)); return(security.Encrypt(jsonAns)); }
async public Task <string> GetDiscountPolicy(int StoreId) { GetDiscountPolicyRequest request = new GetDiscountPolicyRequest(StoreId); comm.SendRequest(request); GetDiscountPolicyResponse response = await comm.Get <GetDiscountPolicyResponse>(); return(response.DiscountPolicy); }