Exemple #1
0
        internal byte[] HandleGetStoresOwnedBy(string json)
        {
            GetStoresOwnedByRequest res = JsonConvert.DeserializeObject <GetStoresOwnedByRequest>(json);
            List <Store>            ans = storeService.GetStoresOwnedBy(res.User);
            string jsonAns = Seralize(new GetStoresOwnedByResponse(converter.ToStoreDataList(ans), ""));

            return(security.Encrypt(jsonAns));
        }
        async public Task <GetStoresOwnedByResponse> GetStoresOwnedBy(string username)
        {
            GetStoresOwnedByRequest request = new GetStoresOwnedByRequest(username);

            comm.SendRequest(request);
            GetStoresOwnedByResponse response = await comm.Get <GetStoresOwnedByResponse>();

            return(response);
        }