public async Task <string> GetAMList <T>(ReadEntryListRequest req, string apiEndpoint) where T : AMCustomer.EntityBase { var resp = await GetAMList(req, apiEndpoint).ConfigureAwait(false); var strList = Convert.ToString(resp); return(strList); }
public async Task <string> GetAMList(ReadEntryListRequest req, string apiEndpoint) { string method = "GET"; var dObj = new { Authorization = $"Bearer {req.AccessToken}", module_name = req.ModuleName }; var jstr = await CallApi(method, dObj, apiEndpoint).ConfigureAwait(false); return(jstr); }