Beispiel #1
0
        public static List <T> All <T>(string path, NameValueCollection filters = null, string presetName = "maestrano")
        {
            var request = new RestRequest();

            request.Resource = path;
            request.Method   = Method.GET;

            // Add query parameters
            if (filters != null)
            {
                foreach (String k in filters.AllKeys)
                {
                    request.AddParameter(k, filters[k]);
                }
            }

            return(MnoClient.ProcessList <T>(request, presetName));
        }