예제 #1
0
        public async Task <IActionResult> GetBatchUpdateReasons()
        {
            var reasons = await _batchService.GetBatchUpdateReasons();

            if (reasons != null)
            {
                return(Ok(reasons));
            }

            return(StatusCode(500, "Unable to retrieve batches."));
        }