public async Task <string> Get(string token)
        {
            var accessToken = await _citadel.GetAccessToken(token);

            if (_productType == "employment")
            {
                return(await _citadel.GetEmploymentInfoByToken(accessToken));
            }
            else
            {
                return(await _citadel.GetIncomeInfoByToken(accessToken));
            }
        }
示例#2
0
        public async Task <string> Get(string token)
        {
            var accessToken = await _citadel.GetAccessToken(token);

            var directory = await _citadel.GetEmployeeDirectoryByToken(accessToken);

            var reportId = await _citadel.RequestPayrollReport(accessToken, "2020-01-01", "2020-10-31");

            var payroll = await _citadel.GetPayrollById(reportId);

            var finalResponse = "{ \"directory\": " + directory + ", \"payroll\": " + payroll + "}";

            return(finalResponse);
        }