public async void SaveOrUpdateToDoItemsAsync(List <ToDoItem> toDoItems)
 {
     _toDoItems = null;
     _toDoItems = toDoItems;
     string commandUrl = "SaveOrUpdateToDoItems";
     var    result     = await _httpRequestService.Post <ToDoItemsResult>(commandUrl, toDoItems);
 }
Example #2
0
        /// <summary>
        /// 保存采集商品(服务端缓存机制)
        /// </summary>
        /// <param name="loginToken"></param>
        /// <param name="goodsJson"></param>
        public Dictionary <string, string> cacheCollectionGoods(string loginToken, string goodsJson)
        {
            Dictionary <string, string> data = new Dictionary <string, string>();

            data["token"]     = loginToken;
            data["goodsJson"] = goodsJson;
            return(HttpRequestService.Post <Dictionary <string, string> >(ApiDefineConst.cacheCollectionGoods, data));
        }