public List <ItemDetails> GetDeatilbyItemId(int id) { List <ItemDetails> result = new List <ItemDetails>(); result.Add(JsonHelper.ConvertJsonToGenericObject <ItemDetails>(GetApi(string.Format("https://localhost:44348/Item/{0}", id), "GET"))); return(result); }
public List <ItemInventory> GetItemInventory() { List <ItemInventory> result = new List <ItemInventory>(); result = JsonHelper.ConvertJsonToGenericObject <List <ItemInventory> >(GetApi("https://localhost:44348/Item", "GET")); return(result); }