示例#1
0
        public static async Task <Beleg.StatusEnum[]> GetStatusList()
        {
            Beleg.StatusEnum[] result = await WebRequester.HttpGet <Beleg.StatusEnum[]>(
                serviceBaseUrl,
                "/status");

            return(result);
        }
示例#2
0
        public static async Task <string[]> GetTypeList()
        {
            string[] result = await WebRequester.HttpGet <string[]>(
                serviceBaseUrl,
                "/types");

            return(result);
        }
示例#3
0
        public static async Task <Beleg> GetBeleg(string user, int belegnummer)
        {
            // Parameter prüfen
            if (string.IsNullOrWhiteSpace(user))
            {
                throw new ArgumentNullException(nameof(user));
            }

            Beleg result = await WebRequester.HttpGet <Beleg>(
                serviceBaseUrl,
                string.Format("/{0}/{1}", user, belegnummer));

            return(result);
        }