public async Task <IActionResult> GetBatchItems(long id) { var batchItems = await _batchService.GetBatchItems(id); if (batchItems != null) { return(Ok(batchItems)); } return(StatusCode(500, $"Unable to retrieve batch items for batch: {id}.")); }