Exemplo n.º 1
0
        public async Task <IActionResult> Test()
        {
            try
            {
                var jobTypes = await _demoService1AppService.GetJobTypes();

                return(Ok(jobTypes));
            }
            catch (Exception)
            {
                return(StatusCode(403, "You do not have permission to perform this action"));
            }
        }
        public async Task <IActionResult> Test()
        {
            var jobTypes = await _demoService1AppService.GetJobTypes();

            return(Ok(jobTypes));
        }