public async Task <IHttpActionResult> Index(string hashedAccountId)
        {
            var result = await _orchestrator.GetLevy(hashedAccountId);

            if (result.Data == null)
            {
                return(NotFound());
            }

            return(Ok(result.Data));
        }
Пример #2
0
        public async Task <IHttpActionResult> GetLevy(string hashedAccountId, string payrollYear, short payrollMonth)
        {
            var result = await _orchestrator.GetLevy(hashedAccountId, payrollYear, payrollMonth);

            if (result.Data == null)
            {
                return(NotFound());
            }

            return(Ok(result.Data));
        }