private async Task <Dictionary <string, Dictionary <string, string> > > GetDataItemList()
        {
            var itemdata = await _itemsDetailApp.GetList();

            var dictionaryItem = new Dictionary <string, Dictionary <string, string> >();

            foreach (var item in await _itemsApp.GetList())
            {
                var dataItemList       = itemdata.FindAll(t => t.F_ItemId.Equals(item.F_Id));
                var dictionaryItemList = new Dictionary <string, string>();
                foreach (var itemList in dataItemList)
                {
                    dictionaryItemList.Add(itemList.F_ItemCode, itemList.F_ItemName);
                }
                dictionaryItem.Add(item.F_EnCode, dictionaryItemList);
            }

            return(dictionaryItem);
        }
Exemplo n.º 2
0
        public async Task <IActionResult> GetGridJson(string itemId, string keyword)
        {
            var data = await _itemsDetailApp.GetList(itemId, keyword);

            return(Content(data.ToJson()));
        }